-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #38
- Loading branch information
Showing
17 changed files
with
276 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
source_set("common") { | ||
sources = [ | ||
"common_message_generator.cc", | ||
"common_message_generator.h", | ||
] | ||
deps = [ | ||
"extensions/api" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
// Get basic type definitions. | ||
#define IPC_MESSAGE_IMPL | ||
|
||
#include "brave/common/common_message_generator.h" | ||
|
||
// Generate constructors. | ||
#include "ipc/struct_constructor_macros.h" | ||
#include "brave/common/common_message_generator.h" | ||
|
||
// Generate destructors. | ||
#include "ipc/struct_destructor_macros.h" | ||
#include "brave/common/common_message_generator.h" | ||
|
||
// Generate param traits write methods. | ||
#include "ipc/param_traits_write_macros.h" | ||
namespace IPC { | ||
#include "brave/common/common_message_generator.h" | ||
} // namespace IPC | ||
|
||
// Generate param traits read methods. | ||
#include "ipc/param_traits_read_macros.h" | ||
namespace IPC { | ||
#include "brave/common/common_message_generator.h" | ||
} // namespace IPC | ||
|
||
// Generate param traits log methods. | ||
#include "ipc/param_traits_log_macros.h" | ||
namespace IPC { | ||
#include "brave/common/common_message_generator.h" | ||
} // namespace IPC | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// Multiply-included file, no traditional include guard. | ||
#include "brave/common/render_messages.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
// Multiply-included file, no traditional include guard. | ||
|
||
#include "base/strings/string16.h" | ||
#include "ipc/ipc_message_macros.h" | ||
|
||
// The message starter should be declared in ipc/ipc_message_start.h. Since | ||
// we don't want to patch Chromium, we just pretend to be Content Shell. | ||
|
||
#define IPC_MESSAGE_START ShellMsgStart | ||
|
||
// Tells the browser that content in the current page was blocked due to the | ||
// user's content settings. | ||
IPC_MESSAGE_ROUTED1(BraveViewHostMsg_JavaScriptBlocked, | ||
base::string16 /* details on blocked content */) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
|
||
#ifndef BRAVE_COMPONENTS_BRAVE_SHIELDS_BROWSER_SHIELD_TYPES_H_ | ||
#define BRAVE_COMPONENTS_BRAVE_SHIELDS_BROWSER_SHIELD_TYPES_H_ | ||
|
||
namespace brave_shields { | ||
|
||
const char kJavaScript[] = "javascript"; | ||
const char kAdBlock[] = "adBlock"; | ||
const char kTrackingProtection[] = "trackingProtection"; | ||
const char kHttpsEverywhere[] = "httpsEverywhere"; | ||
|
||
} // brave_shields | ||
|
||
#endif // BRAVE_COMPONENTS_BRAVE_SHIELDS_BROWSER_SHIELD_TYPES_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.