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

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

Issue 292313004: Port aria_util_test.js to run as a WebUI test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 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 | « chrome/chrome_tests.gypi ('k') | 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // maximum amount kMaxIndexChars will be placed into the given buffer. 85 // maximum amount kMaxIndexChars will be placed into the given buffer.
86 void CaptureText(blink::WebFrame* frame, base::string16* contents); 86 void CaptureText(blink::WebFrame* frame, base::string16* contents);
87 87
88 // Determines if a host is in the strict security host set. 88 // Determines if a host is in the strict security host set.
89 bool IsStrictSecurityHost(const std::string& host); 89 bool IsStrictSecurityHost(const std::string& host);
90 90
91 // Checks if a page contains <meta http-equiv="refresh" ...> tag. 91 // Checks if a page contains <meta http-equiv="refresh" ...> tag.
92 bool HasRefreshMetaTag(blink::WebFrame* frame); 92 bool HasRefreshMetaTag(blink::WebFrame* frame);
93 93
94 // Save the JavaScript to preload if a ViewMsg_WebUIJavaScript is received. 94 // Save the JavaScript to preload if a ViewMsg_WebUIJavaScript is received.
95 base::string16 webui_javascript_; 95 std::vector<base::string16> webui_javascript_;
96 96
97 // Owned by ChromeContentRendererClient and outlive us. 97 // Owned by ChromeContentRendererClient and outlive us.
98 ChromeRenderProcessObserver* chrome_render_process_observer_; 98 ChromeRenderProcessObserver* chrome_render_process_observer_;
99 99
100 // Have the same lifetime as us. 100 // Have the same lifetime as us.
101 TranslateHelper* translate_helper_; 101 TranslateHelper* translate_helper_;
102 safe_browsing::PhishingClassifierDelegate* phishing_classifier_; 102 safe_browsing::PhishingClassifierDelegate* phishing_classifier_;
103 103
104 // Page_id from the last page we indexed. This prevents us from indexing the 104 // Page_id from the last page we indexed. This prevents us from indexing the
105 // same page twice in a row. 105 // same page twice in a row.
106 int32 last_indexed_page_id_; 106 int32 last_indexed_page_id_;
107 // The toplevel URL that was last indexed. This is used together with the 107 // The toplevel URL that was last indexed. This is used together with the
108 // page id to decide whether to reindex in certain cases like history 108 // page id to decide whether to reindex in certain cases like history
109 // replacement. 109 // replacement.
110 GURL last_indexed_url_; 110 GURL last_indexed_url_;
111 111
112 // A color page overlay when visually de-emaphasized. 112 // A color page overlay when visually de-emaphasized.
113 scoped_ptr<WebViewColorOverlay> dimmed_color_overlay_; 113 scoped_ptr<WebViewColorOverlay> dimmed_color_overlay_;
114 114
115 // Used to delay calling CapturePageInfo. 115 // Used to delay calling CapturePageInfo.
116 base::Timer capture_timer_; 116 base::Timer capture_timer_;
117 117
118 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); 118 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver);
119 }; 119 };
120 120
121 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ 121 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/renderer/chrome_render_view_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698