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