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

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

Issue 985643004: Make ContentRendererClient::DidCreateScriptContext take a WebLocalFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: namespace Created 5 years, 9 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
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | extensions/renderer/dispatcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 227
228 // 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
229 // |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|.
230 virtual bool WillSendRequest(blink::WebFrame* frame, 230 virtual bool WillSendRequest(blink::WebFrame* frame,
231 ui::PageTransition transition_type, 231 ui::PageTransition transition_type,
232 const GURL& url, 232 const GURL& url,
233 const GURL& first_party_for_cookies, 233 const GURL& first_party_for_cookies,
234 GURL* new_url); 234 GURL* new_url);
235 235
236 // See the corresponding functions in blink::WebFrameClient. 236 // See the corresponding functions in blink::WebFrameClient.
237 virtual void DidCreateScriptContext(blink::WebFrame* frame, 237 virtual void DidCreateScriptContext(blink::WebLocalFrame* frame,
238 v8::Handle<v8::Context> context, 238 v8::Handle<v8::Context> context,
239 int extension_group, 239 int extension_group,
240 int world_id) {} 240 int world_id) {}
241 241
242 // See blink::Platform. 242 // See blink::Platform.
243 virtual unsigned long long VisitedLinkHash(const char* canonical_url, 243 virtual unsigned long long VisitedLinkHash(const char* canonical_url,
244 size_t length); 244 size_t length);
245 virtual bool IsLinkVisited(unsigned long long link_hash); 245 virtual bool IsLinkVisited(unsigned long long link_hash);
246 virtual blink::WebPrescientNetworking* GetPrescientNetworking(); 246 virtual blink::WebPrescientNetworking* GetPrescientNetworking();
247 virtual bool ShouldOverridePageVisibilityState( 247 virtual bool ShouldOverridePageVisibilityState(
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 virtual bool IsPluginAllowedToUseDevChannelAPIs(); 295 virtual bool IsPluginAllowedToUseDevChannelAPIs();
296 296
297 // Returns a user agent override specific for |url|, or empty string if 297 // Returns a user agent override specific for |url|, or empty string if
298 // default user agent should be used. 298 // default user agent should be used.
299 virtual std::string GetUserAgentOverrideForURL(const GURL& url); 299 virtual std::string GetUserAgentOverrideForURL(const GURL& url);
300 }; 300 };
301 301
302 } // namespace content 302 } // namespace content
303 303
304 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 304 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | extensions/renderer/dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698