| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |