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

Side by Side Diff: content/public/renderer/content_renderer_client.h

Issue 1161483004: Move guest view container message routing out of content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove ChromeGVCDispatcher + sync Created 5 years, 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/bind.h"
12 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
15 #include "base/strings/string16.h" 16 #include "base/strings/string16.h"
16 #include "content/public/common/content_client.h" 17 #include "content/public/common/content_client.h"
17 #include "ipc/ipc_message.h"
18 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" 18 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
19 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" 19 #include "third_party/WebKit/public/web/WebNavigationPolicy.h"
20 #include "third_party/WebKit/public/web/WebNavigationType.h" 20 #include "third_party/WebKit/public/web/WebNavigationType.h"
21 #include "ui/base/page_transition_types.h" 21 #include "ui/base/page_transition_types.h"
22 #include "v8/include/v8.h" 22 #include "v8/include/v8.h"
23 23
24 class GURL; 24 class GURL;
25 class SkBitmap; 25 class SkBitmap;
26 26
27 namespace base { 27 namespace base {
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 // If |send_referrer| is set to false (which is the default), no referrer 218 // If |send_referrer| is set to false (which is the default), no referrer
219 // header will be send for the navigation. Otherwise, the referrer header is 219 // header will be send for the navigation. Otherwise, the referrer header is
220 // set according to the frame's referrer policy. 220 // set according to the frame's referrer policy.
221 virtual bool ShouldFork(blink::WebFrame* frame, 221 virtual bool ShouldFork(blink::WebFrame* frame,
222 const GURL& url, 222 const GURL& url,
223 const std::string& http_method, 223 const std::string& http_method,
224 bool is_initial_navigation, 224 bool is_initial_navigation,
225 bool is_server_redirect, 225 bool is_server_redirect,
226 bool* send_referrer); 226 bool* send_referrer);
227 227
228 // Returns true if this IPC message belongs to a guest container. Currently,
229 // BrowserPlugin is a guest container.
230 virtual bool ShouldForwardToGuestContainer(const IPC::Message& msg);
231
232 // Notifies the embedder that the given frame is requesting the resource at 228 // Notifies the embedder that the given frame is requesting the resource at
233 // |url|. If the function returns true, the url is changed to |new_url|. 229 // |url|. If the function returns true, the url is changed to |new_url|.
234 virtual bool WillSendRequest(blink::WebFrame* frame, 230 virtual bool WillSendRequest(blink::WebFrame* frame,
235 ui::PageTransition transition_type, 231 ui::PageTransition transition_type,
236 const GURL& url, 232 const GURL& url,
237 const GURL& first_party_for_cookies, 233 const GURL& first_party_for_cookies,
238 GURL* new_url); 234 GURL* new_url);
239 235
240 // See blink::Platform. 236 // See blink::Platform.
241 virtual unsigned long long VisitedLinkHash(const char* canonical_url, 237 virtual unsigned long long VisitedLinkHash(const char* canonical_url,
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 // Gives the embedder a chance to add properties to the context menu. 312 // Gives the embedder a chance to add properties to the context menu.
317 // Currently only called when the context menu is for an image. 313 // Currently only called when the context menu is for an image.
318 virtual void AddImageContextMenuProperties( 314 virtual void AddImageContextMenuProperties(
319 const blink::WebURLResponse& response, 315 const blink::WebURLResponse& response,
320 std::map<std::string, std::string>* properties) {} 316 std::map<std::string, std::string>* properties) {}
321 }; 317 };
322 318
323 } // namespace content 319 } // namespace content
324 320
325 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 321 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/public/renderer/browser_plugin_delegate.cc ('k') | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698