Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Side by Side Diff: chrome/renderer/chrome_render_view_observer.h

Issue 14769004: Translate: infobars should not appear when a page has a refresh meta tag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make HasRefreshMetaTag() non-static function Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/renderer/chrome_render_view_observer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 void OnSetIsPrerendering(bool is_prerendering); 133 void OnSetIsPrerendering(bool is_prerendering);
134 void OnSetAllowDisplayingInsecureContent(bool allow); 134 void OnSetAllowDisplayingInsecureContent(bool allow);
135 void OnSetAllowRunningInsecureContent(bool allow); 135 void OnSetAllowRunningInsecureContent(bool allow);
136 void OnSetClientSidePhishingDetection(bool enable_phishing_detection); 136 void OnSetClientSidePhishingDetection(bool enable_phishing_detection);
137 void OnSetVisuallyDeemphasized(bool deemphasized); 137 void OnSetVisuallyDeemphasized(bool deemphasized);
138 void OnStartFrameSniffer(const string16& frame_name); 138 void OnStartFrameSniffer(const string16& frame_name);
139 void OnGetFPS(); 139 void OnGetFPS();
140 void OnAddStrictSecurityHost(const std::string& host); 140 void OnAddStrictSecurityHost(const std::string& host);
141 void OnNPAPINotSupported(); 141 void OnNPAPINotSupported();
142 142
143 void CapturePageInfoLater(bool preliminary_capture, base::TimeDelta delay); 143 void CapturePageInfoLater(int page_id,
144 bool preliminary_capture,
145 base::TimeDelta delay);
144 146
145 // Captures the thumbnail and text contents for indexing for the given load 147 // Captures the thumbnail and text contents for indexing for the given load
146 // ID. Kicks off analysis of the captured text. 148 // ID. Kicks off analysis of the captured text.
147 void CapturePageInfo(bool preliminary_capture); 149 void CapturePageInfo(int page_id, bool preliminary_capture);
148 150
149 // Retrieves the text from the given frame contents, the page text up to the 151 // Retrieves the text from the given frame contents, the page text up to the
150 // maximum amount kMaxIndexChars will be placed into the given buffer. 152 // maximum amount kMaxIndexChars will be placed into the given buffer.
151 void CaptureText(WebKit::WebFrame* frame, string16* contents); 153 void CaptureText(WebKit::WebFrame* frame, string16* contents);
152 154
153 ExternalHostBindings* GetExternalHostBindings(); 155 ExternalHostBindings* GetExternalHostBindings();
154 156
155 // Determines if a host is in the strict security host set. 157 // Determines if a host is in the strict security host set.
156 bool IsStrictSecurityHost(const std::string& host); 158 bool IsStrictSecurityHost(const std::string& host);
157 159
158 // If |origin| corresponds to an installed extension, returns that extension. 160 // If |origin| corresponds to an installed extension, returns that extension.
159 // Otherwise returns NULL. 161 // Otherwise returns NULL.
160 const extensions::Extension* GetExtension( 162 const extensions::Extension* GetExtension(
161 const WebKit::WebSecurityOrigin& origin) const; 163 const WebKit::WebSecurityOrigin& origin) const;
162 164
165 // Checks if a page contains <meta http-equiv="refresh" ...> tag.
166 bool HasRefreshMetaTag(WebKit::WebFrame* frame);
Takashi Toyoshima 2013/05/14 14:38:29 We still need WebFrame argument because two kinds
167
163 // Save the JavaScript to preload if a ViewMsg_WebUIJavaScript is received. 168 // Save the JavaScript to preload if a ViewMsg_WebUIJavaScript is received.
164 scoped_ptr<WebUIJavaScript> webui_javascript_; 169 scoped_ptr<WebUIJavaScript> webui_javascript_;
165 170
166 // Owned by ChromeContentRendererClient and outlive us. 171 // Owned by ChromeContentRendererClient and outlive us.
167 ChromeRenderProcessObserver* chrome_render_process_observer_; 172 ChromeRenderProcessObserver* chrome_render_process_observer_;
168 extensions::Dispatcher* extension_dispatcher_; 173 extensions::Dispatcher* extension_dispatcher_;
169 174
170 // Have the same lifetime as us. 175 // Have the same lifetime as us.
171 ContentSettingsObserver* content_settings_; 176 ContentSettingsObserver* content_settings_;
172 TranslateHelper* translate_helper_; 177 TranslateHelper* translate_helper_;
(...skipping 18 matching lines...) Expand all
191 // A color page overlay when visually de-emaphasized. 196 // A color page overlay when visually de-emaphasized.
192 scoped_ptr<WebViewColorOverlay> dimmed_color_overlay_; 197 scoped_ptr<WebViewColorOverlay> dimmed_color_overlay_;
193 198
194 // Used to delay calling CapturePageInfo. 199 // Used to delay calling CapturePageInfo.
195 base::Timer capture_timer_; 200 base::Timer capture_timer_;
196 201
197 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); 202 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver);
198 }; 203 };
199 204
200 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ 205 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/chrome_render_view_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698