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

Side by Side Diff: chrome/browser/prerender/prerender_contents.h

Issue 10636034: Cancel prerender when a site tries to register a protocol handler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Change strings Created 8 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
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_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 base::TimeTicks load_start_time() const { return load_start_time_; } 156 base::TimeTicks load_start_time() const { return load_start_time_; }
157 157
158 // Indicates whether this prerendered page can be used for the provided 158 // Indicates whether this prerendered page can be used for the provided
159 // URL, i.e. whether there is a match. |matching_url| is optional and will be 159 // URL, i.e. whether there is a match. |matching_url| is optional and will be
160 // set to the URL that is found as a match if it is provided. 160 // set to the URL that is found as a match if it is provided.
161 // TODO(gavinp,mmenke): Rework matching to be based on both the URL 161 // TODO(gavinp,mmenke): Rework matching to be based on both the URL
162 // and the session WebStorage. 162 // and the session WebStorage.
163 bool MatchesURL(const GURL& url, GURL* matching_url) const; 163 bool MatchesURL(const GURL& url, GURL* matching_url) const;
164 164
165 void OnJSOutOfMemory();
166 bool ShouldSuppressDialogs();
167
168 // content::WebContentsObserver implementation. 165 // content::WebContentsObserver implementation.
169 virtual void DidStopLoading() OVERRIDE; 166 virtual void DidStopLoading() OVERRIDE;
170 virtual void DidStartProvisionalLoadForFrame( 167 virtual void DidStartProvisionalLoadForFrame(
171 int64 frame_id, 168 int64 frame_id,
172 bool is_main_frame, 169 bool is_main_frame,
173 const GURL& validated_url, 170 const GURL& validated_url,
174 bool is_error_page, 171 bool is_error_page,
175 content::RenderViewHost* render_view_host) OVERRIDE; 172 content::RenderViewHost* render_view_host) OVERRIDE;
176 virtual void DidFinishLoad(int64 frame_id, 173 virtual void DidFinishLoad(int64 frame_id,
177 const GURL& validated_url, 174 const GURL& validated_url,
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 355
359 // The size of the WebView from the launching page. 356 // The size of the WebView from the launching page.
360 gfx::Size size_; 357 gfx::Size size_;
361 358
362 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); 359 DISALLOW_COPY_AND_ASSIGN(PrerenderContents);
363 }; 360 };
364 361
365 } // namespace prerender 362 } // namespace prerender
366 363
367 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ 364 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698