Chromium Code Reviews| 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 | 9 |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "ipc/ipc_message.h" | 12 #include "ipc/ipc_message.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" | |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat e.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat e.h" |
| 15 #include "v8/include/v8.h" | 16 #include "v8/include/v8.h" |
| 16 | 17 |
| 17 class FilePath; | 18 class FilePath; |
| 18 class GURL; | 19 class GURL; |
| 19 class SkBitmap; | 20 class SkBitmap; |
| 20 | 21 |
| 21 namespace WebKit { | 22 namespace WebKit { |
| 22 class WebAudioSourceProvider; | 23 class WebAudioSourceProvider; |
| 23 class WebFrame; | 24 class WebFrame; |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 131 | 132 |
| 132 // Returns true if we should fork a new process for the given navigation. | 133 // Returns true if we should fork a new process for the given navigation. |
| 133 virtual bool ShouldFork(WebKit::WebFrame* frame, | 134 virtual bool ShouldFork(WebKit::WebFrame* frame, |
| 134 const GURL& url, | 135 const GURL& url, |
| 135 bool is_initial_navigation, | 136 bool is_initial_navigation, |
| 136 bool* send_referrer); | 137 bool* send_referrer); |
| 137 | 138 |
| 138 // Notifies the embedder that the given frame is requesting the resource at | 139 // Notifies the embedder that the given frame is requesting the resource at |
| 139 // |url|. If the function returns true, the url is changed to |new_url|. | 140 // |url|. If the function returns true, the url is changed to |new_url|. |
| 140 virtual bool WillSendRequest(WebKit::WebFrame* frame, | 141 virtual bool WillSendRequest(WebKit::WebFrame* frame, |
| 142 content::PageTransition transition_type, | |
|
jam
2012/08/07 16:17:01
nit: content:: is redundant
Cris Neckar
2012/08/07 18:45:53
Done.
| |
| 141 const GURL& url, | 143 const GURL& url, |
| 142 GURL* new_url); | 144 GURL* new_url); |
| 143 | 145 |
| 144 // Whether to pump events when sending sync cookie messages. Needed if the | 146 // Whether to pump events when sending sync cookie messages. Needed if the |
| 145 // embedder can potentiall put up a modal dialog on the UI thread as a result. | 147 // embedder can potentiall put up a modal dialog on the UI thread as a result. |
| 146 virtual bool ShouldPumpEventsDuringCookieMessage(); | 148 virtual bool ShouldPumpEventsDuringCookieMessage(); |
| 147 | 149 |
| 148 // See the corresponding functions in WebKit::WebFrameClient. | 150 // See the corresponding functions in WebKit::WebFrameClient. |
| 149 virtual void DidCreateScriptContext(WebKit::WebFrame* frame, | 151 virtual void DidCreateScriptContext(WebKit::WebFrame* frame, |
| 150 v8::Handle<v8::Context> context, | 152 v8::Handle<v8::Context> context, |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 177 const GURL& first_party_for_cookies, | 179 const GURL& first_party_for_cookies, |
| 178 const std::string& value); | 180 const std::string& value); |
| 179 | 181 |
| 180 virtual void RegisterPPAPIInterfaceFactories( | 182 virtual void RegisterPPAPIInterfaceFactories( |
| 181 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) {} | 183 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) {} |
| 182 }; | 184 }; |
| 183 | 185 |
| 184 } // namespace content | 186 } // namespace content |
| 185 | 187 |
| 186 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 188 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |