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

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

Issue 10270003: Change PrerenderContents::render_view_host from hacker_style to StudlyCaps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // |source_render_view_host| is the RenderViewHost that initiated 103 // |source_render_view_host| is the RenderViewHost that initiated
104 // prerendering. 104 // prerendering.
105 virtual void StartPrerendering( 105 virtual void StartPrerendering(
106 const content::RenderViewHost* source_render_view_host, 106 const content::RenderViewHost* source_render_view_host,
107 content::SessionStorageNamespace* session_storage_namespace); 107 content::SessionStorageNamespace* session_storage_namespace);
108 108
109 // Verifies that the prerendering is not using too many resources, and kills 109 // Verifies that the prerendering is not using too many resources, and kills
110 // it if not. 110 // it if not.
111 void DestroyWhenUsingTooManyResources(); 111 void DestroyWhenUsingTooManyResources();
112 112
113 content::RenderViewHost* render_view_host_mutable(); 113 content::RenderViewHost* GetRenderViewHostMutable();
114 const content::RenderViewHost* render_view_host() const; 114 const content::RenderViewHost* GetRenderViewHost() const;
115
115 string16 title() const { return title_; } 116 string16 title() const { return title_; }
116 int32 page_id() const { return page_id_; } 117 int32 page_id() const { return page_id_; }
117 GURL icon_url() const { return icon_url_; } 118 GURL icon_url() const { return icon_url_; }
118 const GURL& prerender_url() const { return prerender_url_; } 119 const GURL& prerender_url() const { return prerender_url_; }
119 const content::Referrer& referrer() const { return referrer_; } 120 const content::Referrer& referrer() const { return referrer_; }
120 bool has_stopped_loading() const { return has_stopped_loading_; } 121 bool has_stopped_loading() const { return has_stopped_loading_; }
121 bool has_finished_loading() const { return has_finished_loading_; } 122 bool has_finished_loading() const { return has_finished_loading_; }
122 bool prerendering_has_started() const { return prerendering_has_started_; } 123 bool prerendering_has_started() const { return prerendering_has_started_; }
123 MatchCompleteStatus match_complete_status() const { 124 MatchCompleteStatus match_complete_status() const {
124 return match_complete_status_; 125 return match_complete_status_;
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 341
341 // The process that created the child id. 342 // The process that created the child id.
342 int creator_child_id_; 343 int creator_child_id_;
343 344
344 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); 345 DISALLOW_COPY_AND_ASSIGN(PrerenderContents);
345 }; 346 };
346 347
347 } // namespace prerender 348 } // namespace prerender
348 349
349 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ 350 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_browsertest.cc ('k') | chrome/browser/prerender/prerender_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698