| 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 |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 13 #include "content/public/common/content_client.h" | 13 #include "content/public/common/content_client.h" |
| 14 #include "content/public/common/page_transition_types.h" | |
| 15 #include "ipc/ipc_message.h" | 14 #include "ipc/ipc_message.h" |
| 16 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" | 15 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" |
| 17 #include "third_party/WebKit/public/web/WebNavigationType.h" | 16 #include "third_party/WebKit/public/web/WebNavigationType.h" |
| 18 #include "third_party/WebKit/public/web/WebPageVisibilityState.h" | 17 #include "third_party/WebKit/public/web/WebPageVisibilityState.h" |
| 18 #include "ui/base/page_transition_types.h" |
| 19 #include "v8/include/v8.h" | 19 #include "v8/include/v8.h" |
| 20 | 20 |
| 21 class GURL; | 21 class GURL; |
| 22 class SkBitmap; | 22 class SkBitmap; |
| 23 | 23 |
| 24 namespace base { | 24 namespace base { |
| 25 class FilePath; | 25 class FilePath; |
| 26 class MessageLoop; | 26 class MessageLoop; |
| 27 } | 27 } |
| 28 | 28 |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 virtual bool ShouldFork(blink::WebFrame* frame, | 206 virtual bool ShouldFork(blink::WebFrame* frame, |
| 207 const GURL& url, | 207 const GURL& url, |
| 208 const std::string& http_method, | 208 const std::string& http_method, |
| 209 bool is_initial_navigation, | 209 bool is_initial_navigation, |
| 210 bool is_server_redirect, | 210 bool is_server_redirect, |
| 211 bool* send_referrer); | 211 bool* send_referrer); |
| 212 | 212 |
| 213 // Notifies the embedder that the given frame is requesting the resource at | 213 // Notifies the embedder that the given frame is requesting the resource at |
| 214 // |url|. If the function returns true, the url is changed to |new_url|. | 214 // |url|. If the function returns true, the url is changed to |new_url|. |
| 215 virtual bool WillSendRequest(blink::WebFrame* frame, | 215 virtual bool WillSendRequest(blink::WebFrame* frame, |
| 216 PageTransition transition_type, | 216 ui::PageTransition transition_type, |
| 217 const GURL& url, | 217 const GURL& url, |
| 218 const GURL& first_party_for_cookies, | 218 const GURL& first_party_for_cookies, |
| 219 GURL* new_url); | 219 GURL* new_url); |
| 220 | 220 |
| 221 // See the corresponding functions in blink::WebFrameClient. | 221 // See the corresponding functions in blink::WebFrameClient. |
| 222 virtual void DidCreateScriptContext(blink::WebFrame* frame, | 222 virtual void DidCreateScriptContext(blink::WebFrame* frame, |
| 223 v8::Handle<v8::Context> context, | 223 v8::Handle<v8::Context> context, |
| 224 int extension_group, | 224 int extension_group, |
| 225 int world_id) {} | 225 int world_id) {} |
| 226 | 226 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 // Returns true if the page at |url| can use Pepper VideoDecoder APIs. | 271 // Returns true if the page at |url| can use Pepper VideoDecoder APIs. |
| 272 virtual bool IsPluginAllowedToUseVideoDecodeAPI(const GURL& url); | 272 virtual bool IsPluginAllowedToUseVideoDecodeAPI(const GURL& url); |
| 273 | 273 |
| 274 // Returns true if dev channel APIs are available for plugins. | 274 // Returns true if dev channel APIs are available for plugins. |
| 275 virtual bool IsPluginAllowedToUseDevChannelAPIs(); | 275 virtual bool IsPluginAllowedToUseDevChannelAPIs(); |
| 276 }; | 276 }; |
| 277 | 277 |
| 278 } // namespace content | 278 } // namespace content |
| 279 | 279 |
| 280 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 280 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |