Skip to content

Commit 01e769b

Browse files
committed
patch for "Move content::WebPreferences struct to Blink"
1 parent ea12e63 commit 01e769b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/browser/nw_content_browser_hooks.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include "content/public/browser/render_process_host.h"
1818
#include "content/public/browser/render_view_host.h"
1919
#include "content/public/renderer/v8_value_converter.h"
20-
#include "content/public/common/web_preferences.h"
2120
#include "content/public/browser/child_process_termination_info.h"
2221

2322
// content/nw
@@ -155,7 +154,7 @@ CONTENT_EXPORT void OSXOpenURLsHook(const std::vector<GURL>& startup_urls) {
155154
}
156155
#endif
157156

158-
void OverrideWebkitPrefsHook(content::RenderViewHost* rvh, content::WebPreferences* web_prefs) {
157+
void OverrideWebkitPrefsHook(content::RenderViewHost* rvh, blink::web_pref::WebPreferences* web_prefs) {
159158
nw::Package* package = nw::package();
160159
if (!package)
161160
return;

src/browser/nw_content_browser_hooks.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define NW_CONTENT_BROWSER_HOOKS_H_
33

44
#include "content/common/content_export.h"
5+
#include "third_party/blink/public/common/web_preferences/web_preferences.h"
56

67
class GURL;
78

@@ -43,7 +44,7 @@ CONTENT_EXPORT void RendererProcessTerminatedHook(content::RenderProcessHost* pr
4344
bool ProcessSingletonNotificationCallbackHook(const base::CommandLine& command_line,
4445
const base::FilePath& current_directory);
4546
// ref in chrome/browser/chrome_content_browser_client.cc
46-
CONTENT_EXPORT void OverrideWebkitPrefsHook(content::RenderViewHost* rvh, content::WebPreferences* web_prefs);
47+
CONTENT_EXPORT void OverrideWebkitPrefsHook(content::RenderViewHost* rvh, blink::web_pref::WebPreferences* web_prefs);
4748
// ref in chrome/browser/chrome_content_browser_client.cc
4849
// content/browser/renderer_host/render_process_host_impl.cc
4950
// content/browser/site_instance_impl.cc

src/nw_content.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "nw_package.h"
1111
#include "base/memory/ptr_util.h"
1212
#include "third_party/blink/public/web/web_navigation_policy.h"
13-
//#include "third_party/WebKit/common/page/page_visibility_state.mojom.h"
13+
#include "third_party/blink/public/common/web_preferences/web_preferences.h"
1414

1515
namespace base {
1616
class DictionaryValue;
@@ -97,7 +97,7 @@ void DocumentFinishHook(blink::WebLocalFrame* frame,
9797
void ReloadExtensionHook(const extensions::Extension*);
9898
bool IsReloadingApp();
9999
void KickNextTick();
100-
void OverrideWebkitPrefsHook(content::RenderViewHost* rvh, content::WebPreferences* web_prefs);
100+
void OverrideWebkitPrefsHook(content::RenderViewHost* rvh, blink::web_pref::WebPreferences* web_prefs);
101101
bool PinningRenderer();
102102
void SetPinningRenderer(bool pin);
103103
void ShowDevtools(bool show, content::WebContents* web_contents, content::WebContents* container = nullptr);

0 commit comments

Comments
 (0)