Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: chrome/renderer/extensions/chrome_extensions_renderer_client.h

Issue 2601763002: WebFrame cleanup: Move addMessageToConsole to WebLocalFrame (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_RENDERER_EXTENSIONS_CHROME_EXTENSIONS_RENDERER_CLIENT_H_ 5 #ifndef CHROME_RENDERER_EXTENSIONS_CHROME_EXTENSIONS_RENDERER_CLIENT_H_
6 #define CHROME_RENDERER_EXTENSIONS_CHROME_EXTENSIONS_RENDERER_CLIENT_H_ 6 #define CHROME_RENDERER_EXTENSIONS_CHROME_EXTENSIONS_RENDERER_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "extensions/renderer/extensions_renderer_client.h" 12 #include "extensions/renderer/extensions_renderer_client.h"
13 #include "ui/base/page_transition_types.h" 13 #include "ui/base/page_transition_types.h"
14 14
15 class ChromeExtensionsDispatcherDelegate; 15 class ChromeExtensionsDispatcherDelegate;
16 class GURL; 16 class GURL;
17 17
18 namespace blink { 18 namespace blink {
19 class WebFrame;
20 class WebLocalFrame; 19 class WebLocalFrame;
21 struct WebPluginParams; 20 struct WebPluginParams;
22 class WebURL; 21 class WebURL;
23 } 22 }
24 23
25 namespace content { 24 namespace content {
26 class BrowserPluginDelegate; 25 class BrowserPluginDelegate;
27 class RenderFrame; 26 class RenderFrame;
28 class RenderView; 27 class RenderView;
29 } 28 }
(...skipping 18 matching lines...) Expand all
48 bool IsIncognitoProcess() const override; 47 bool IsIncognitoProcess() const override;
49 int GetLowestIsolatedWorldId() const override; 48 int GetLowestIsolatedWorldId() const override;
50 49
51 // See ChromeContentRendererClient methods with the same names. 50 // See ChromeContentRendererClient methods with the same names.
52 void RenderThreadStarted(); 51 void RenderThreadStarted();
53 void RenderFrameCreated(content::RenderFrame* render_frame); 52 void RenderFrameCreated(content::RenderFrame* render_frame);
54 void RenderViewCreated(content::RenderView* render_view); 53 void RenderViewCreated(content::RenderView* render_view);
55 bool OverrideCreatePlugin(content::RenderFrame* render_frame, 54 bool OverrideCreatePlugin(content::RenderFrame* render_frame,
56 const blink::WebPluginParams& params); 55 const blink::WebPluginParams& params);
57 bool AllowPopup(); 56 bool AllowPopup();
58 bool WillSendRequest(blink::WebFrame* frame, 57 bool WillSendRequest(blink::WebLocalFrame* frame,
59 ui::PageTransition transition_type, 58 ui::PageTransition transition_type,
60 const blink::WebURL& url, 59 const blink::WebURL& url,
61 GURL* new_url); 60 GURL* new_url);
62 void SetExtensionDispatcherForTest( 61 void SetExtensionDispatcherForTest(
63 std::unique_ptr<extensions::Dispatcher> extension_dispatcher); 62 std::unique_ptr<extensions::Dispatcher> extension_dispatcher);
64 extensions::Dispatcher* GetExtensionDispatcherForTest(); 63 extensions::Dispatcher* GetExtensionDispatcherForTest();
65 64
66 static bool ShouldFork(blink::WebLocalFrame* frame, 65 static bool ShouldFork(blink::WebLocalFrame* frame,
67 const GURL& url, 66 const GURL& url,
68 bool is_initial_navigation, 67 bool is_initial_navigation,
(...skipping 18 matching lines...) Expand all
87 std::unique_ptr<extensions::RendererPermissionsPolicyDelegate> 86 std::unique_ptr<extensions::RendererPermissionsPolicyDelegate>
88 permissions_policy_delegate_; 87 permissions_policy_delegate_;
89 std::unique_ptr<extensions::ExtensionsGuestViewContainerDispatcher> 88 std::unique_ptr<extensions::ExtensionsGuestViewContainerDispatcher>
90 guest_view_container_dispatcher_; 89 guest_view_container_dispatcher_;
91 std::unique_ptr<extensions::ResourceRequestPolicy> resource_request_policy_; 90 std::unique_ptr<extensions::ResourceRequestPolicy> resource_request_policy_;
92 91
93 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsRendererClient); 92 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsRendererClient);
94 }; 93 };
95 94
96 #endif // CHROME_RENDERER_EXTENSIONS_CHROME_EXTENSIONS_RENDERER_CLIENT_H_ 95 #endif // CHROME_RENDERER_EXTENSIONS_CHROME_EXTENSIONS_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698