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 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 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 // maximum amount kMaxIndexChars will be placed into the given buffer. | 84 // maximum amount kMaxIndexChars will be placed into the given buffer. |
85 void CaptureText(blink::WebFrame* frame, base::string16* contents); | 85 void CaptureText(blink::WebFrame* frame, base::string16* contents); |
86 | 86 |
87 // Determines if a host is in the strict security host set. | 87 // Determines if a host is in the strict security host set. |
88 bool IsStrictSecurityHost(const std::string& host); | 88 bool IsStrictSecurityHost(const std::string& host); |
89 | 89 |
90 // Checks if a page contains <meta http-equiv="refresh" ...> tag. | 90 // Checks if a page contains <meta http-equiv="refresh" ...> tag. |
91 bool HasRefreshMetaTag(blink::WebFrame* frame); | 91 bool HasRefreshMetaTag(blink::WebFrame* frame); |
92 | 92 |
93 // Save the JavaScript to preload if a ViewMsg_WebUIJavaScript is received. | 93 // Save the JavaScript to preload if a ViewMsg_WebUIJavaScript is received. |
94 base::string16 webui_javascript_; | 94 std::vector<base::string16> webui_javascript_; |
95 | 95 |
96 // Owned by ChromeContentRendererClient and outlive us. | 96 // Owned by ChromeContentRendererClient and outlive us. |
97 ChromeRenderProcessObserver* chrome_render_process_observer_; | 97 ChromeRenderProcessObserver* chrome_render_process_observer_; |
98 | 98 |
99 // Have the same lifetime as us. | 99 // Have the same lifetime as us. |
100 TranslateHelper* translate_helper_; | 100 TranslateHelper* translate_helper_; |
101 safe_browsing::PhishingClassifierDelegate* phishing_classifier_; | 101 safe_browsing::PhishingClassifierDelegate* phishing_classifier_; |
102 | 102 |
103 // Page_id from the last page we indexed. This prevents us from indexing the | 103 // Page_id from the last page we indexed. This prevents us from indexing the |
104 // same page twice in a row. | 104 // same page twice in a row. |
105 int32 last_indexed_page_id_; | 105 int32 last_indexed_page_id_; |
106 // The toplevel URL that was last indexed. This is used together with the | 106 // The toplevel URL that was last indexed. This is used together with the |
107 // page id to decide whether to reindex in certain cases like history | 107 // page id to decide whether to reindex in certain cases like history |
108 // replacement. | 108 // replacement. |
109 GURL last_indexed_url_; | 109 GURL last_indexed_url_; |
110 | 110 |
111 // A color page overlay when visually de-emaphasized. | 111 // A color page overlay when visually de-emaphasized. |
112 scoped_ptr<WebViewColorOverlay> dimmed_color_overlay_; | 112 scoped_ptr<WebViewColorOverlay> dimmed_color_overlay_; |
113 | 113 |
114 // Used to delay calling CapturePageInfo. | 114 // Used to delay calling CapturePageInfo. |
115 base::Timer capture_timer_; | 115 base::Timer capture_timer_; |
116 | 116 |
117 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); | 117 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); |
118 }; | 118 }; |
119 | 119 |
120 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ | 120 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ |
OLD | NEW |