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_RENDER_VIEW_OBSERVER_H_ | 5 #ifndef CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ |
6 #define CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ | 6 #define CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 void OnJavaScriptStressTestControl(int cmd, int param); | 126 void OnJavaScriptStressTestControl(int cmd, int param); |
127 void OnDownloadFavicon(int id, const GURL& image_url, int image_size); | 127 void OnDownloadFavicon(int id, const GURL& image_url, int image_size); |
128 void OnSetIsPrerendering(bool is_prerendering); | 128 void OnSetIsPrerendering(bool is_prerendering); |
129 void OnSetAllowDisplayingInsecureContent(bool allow); | 129 void OnSetAllowDisplayingInsecureContent(bool allow); |
130 void OnSetAllowRunningInsecureContent(bool allow); | 130 void OnSetAllowRunningInsecureContent(bool allow); |
131 void OnSetClientSidePhishingDetection(bool enable_phishing_detection); | 131 void OnSetClientSidePhishingDetection(bool enable_phishing_detection); |
132 void OnSetVisuallyDeemphasized(bool deemphasized); | 132 void OnSetVisuallyDeemphasized(bool deemphasized); |
133 void OnStartFrameSniffer(const string16& frame_name); | 133 void OnStartFrameSniffer(const string16& frame_name); |
134 void OnGetFPS(); | 134 void OnGetFPS(); |
135 void OnAddStrictSecurityHost(const std::string& host); | 135 void OnAddStrictSecurityHost(const std::string& host); |
| 136 void OnSetAsInterstitial(); |
136 | 137 |
137 // Captures the thumbnail and text contents for indexing for the given load | 138 // Captures the thumbnail and text contents for indexing for the given load |
138 // ID. If the view's load ID is different than the parameter, this call is | 139 // ID. If the view's load ID is different than the parameter, this call is |
139 // a NOP. Typically called on a timer, so the load ID may have changed in the | 140 // a NOP. Typically called on a timer, so the load ID may have changed in the |
140 // meantime. | 141 // meantime. |
141 void CapturePageInfo(int load_id, bool preliminary_capture); | 142 void CapturePageInfo(int load_id, bool preliminary_capture); |
142 | 143 |
143 // Retrieves the text from the given frame contents, the page text up to the | 144 // Retrieves the text from the given frame contents, the page text up to the |
144 // maximum amount kMaxIndexChars will be placed into the given buffer. | 145 // maximum amount kMaxIndexChars will be placed into the given buffer. |
145 void CaptureText(WebKit::WebFrame* frame, string16* contents); | 146 void CaptureText(WebKit::WebFrame* frame, string16* contents); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 // ImageResourceFetchers schedule via DownloadImage. | 224 // ImageResourceFetchers schedule via DownloadImage. |
224 ImageResourceFetcherList image_fetchers_; | 225 ImageResourceFetcherList image_fetchers_; |
225 | 226 |
226 // A color page overlay when visually de-emaphasized. | 227 // A color page overlay when visually de-emaphasized. |
227 scoped_ptr<WebViewColorOverlay> dimmed_color_overlay_; | 228 scoped_ptr<WebViewColorOverlay> dimmed_color_overlay_; |
228 | 229 |
229 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); | 230 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); |
230 }; | 231 }; |
231 | 232 |
232 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ | 233 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ |
OLD | NEW |