OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 WebKit::WebFrame* frame, | 48 WebKit::WebFrame* frame, |
49 int http_status_code) OVERRIDE; | 49 int http_status_code) OVERRIDE; |
50 virtual std::string GetNavigationErrorHtml( | 50 virtual std::string GetNavigationErrorHtml( |
51 const WebKit::WebURLRequest& failed_request, | 51 const WebKit::WebURLRequest& failed_request, |
52 const WebKit::WebURLError& error) OVERRIDE; | 52 const WebKit::WebURLError& error) OVERRIDE; |
53 virtual bool RunIdleHandlerWhenWidgetsHidden() OVERRIDE; | 53 virtual bool RunIdleHandlerWhenWidgetsHidden() OVERRIDE; |
54 virtual bool AllowPopup(const GURL& creator) OVERRIDE; | 54 virtual bool AllowPopup(const GURL& creator) OVERRIDE; |
55 virtual bool ShouldFork(WebKit::WebFrame* frame, | 55 virtual bool ShouldFork(WebKit::WebFrame* frame, |
56 const GURL& url, | 56 const GURL& url, |
57 bool is_content_initiated, | 57 bool is_content_initiated, |
| 58 bool is_initial_navigation, |
58 bool* send_referrer) OVERRIDE; | 59 bool* send_referrer) OVERRIDE; |
59 virtual bool WillSendRequest(WebKit::WebFrame* frame, | 60 virtual bool WillSendRequest(WebKit::WebFrame* frame, |
60 const GURL& url, | 61 const GURL& url, |
61 GURL* new_url) OVERRIDE; | 62 GURL* new_url) OVERRIDE; |
62 virtual bool ShouldPumpEventsDuringCookieMessage() OVERRIDE; | 63 virtual bool ShouldPumpEventsDuringCookieMessage() OVERRIDE; |
63 virtual void DidCreateScriptContext(WebKit::WebFrame* frame) OVERRIDE; | 64 virtual void DidCreateScriptContext(WebKit::WebFrame* frame) OVERRIDE; |
64 virtual void DidDestroyScriptContext(WebKit::WebFrame* frame) OVERRIDE; | 65 virtual void DidDestroyScriptContext(WebKit::WebFrame* frame) OVERRIDE; |
65 virtual void DidCreateIsolatedScriptContext(WebKit::WebFrame* frame) OVERRIDE; | 66 virtual void DidCreateIsolatedScriptContext(WebKit::WebFrame* frame) OVERRIDE; |
66 virtual unsigned long long VisitedLinkHash(const char* canonical_url, | 67 virtual unsigned long long VisitedLinkHash(const char* canonical_url, |
67 size_t length) OVERRIDE; | 68 size_t length) OVERRIDE; |
(...skipping 22 matching lines...) Expand all Loading... |
90 WebKit::WebFrame* frame, | 91 WebKit::WebFrame* frame, |
91 const WebKit::WebPluginParams& params, | 92 const WebKit::WebPluginParams& params, |
92 const webkit::npapi::PluginGroup& group, | 93 const webkit::npapi::PluginGroup& group, |
93 int resource_id, | 94 int resource_id, |
94 int message_id, | 95 int message_id, |
95 bool is_blocked_for_prerendering, | 96 bool is_blocked_for_prerendering, |
96 bool allow_loading); | 97 bool allow_loading); |
97 | 98 |
98 // Returns true if the frame is navigating to an URL either into or out of an | 99 // Returns true if the frame is navigating to an URL either into or out of an |
99 // extension app's extent. | 100 // extension app's extent. |
100 bool CrossesExtensionExtents(WebKit::WebFrame* frame, const GURL& new_url); | 101 bool CrossesExtensionExtents(WebKit::WebFrame* frame, |
| 102 const GURL& new_url, |
| 103 bool is_initial_navigation); |
101 | 104 |
102 scoped_ptr<ChromeRenderProcessObserver> chrome_observer_; | 105 scoped_ptr<ChromeRenderProcessObserver> chrome_observer_; |
103 scoped_ptr<ExtensionDispatcher> extension_dispatcher_; | 106 scoped_ptr<ExtensionDispatcher> extension_dispatcher_; |
104 scoped_ptr<RendererHistogramSnapshots> histogram_snapshots_; | 107 scoped_ptr<RendererHistogramSnapshots> histogram_snapshots_; |
105 scoped_ptr<RendererNetPredictor> net_predictor_; | 108 scoped_ptr<RendererNetPredictor> net_predictor_; |
106 scoped_ptr<SpellCheck> spellcheck_; | 109 scoped_ptr<SpellCheck> spellcheck_; |
107 // The SpellCheckProvider is a RenderViewObserver, and handles its own | 110 // The SpellCheckProvider is a RenderViewObserver, and handles its own |
108 // destruction. | 111 // destruction. |
109 SpellCheckProvider* spellcheck_provider_; | 112 SpellCheckProvider* spellcheck_provider_; |
110 scoped_ptr<VisitedLinkSlave> visited_link_slave_; | 113 scoped_ptr<VisitedLinkSlave> visited_link_slave_; |
111 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; | 114 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; |
112 }; | 115 }; |
113 | 116 |
114 } // namespace chrome | 117 } // namespace chrome |
115 | 118 |
116 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 119 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |