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

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

Issue 104833006: Switch ContentSettingsObserver to be a RenderFrameObserver instead of a RenderViewObserver (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years 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 7
8 #include <set>
9 #include <string> 8 #include <string>
10 #include <utility> 9 #include <utility>
11 #include <vector> 10 #include <vector>
12 11
13 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/scoped_vector.h" 13 #include "base/memory/scoped_vector.h"
15 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
16 #include "base/observer_list.h" 15 #include "base/observer_list.h"
17 #include "base/time/time.h" 16 #include "base/time/time.h"
18 #include "base/values.h" 17 #include "base/values.h"
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 208
210 // Indicates whether this prerendered page can be used for the provided 209 // Indicates whether this prerendered page can be used for the provided
211 // |url| and |session_storage_namespace|. 210 // |url| and |session_storage_namespace|.
212 bool Matches( 211 bool Matches(
213 const GURL& url, 212 const GURL& url,
214 const content::SessionStorageNamespace* session_storage_namespace) const; 213 const content::SessionStorageNamespace* session_storage_namespace) const;
215 214
216 // content::WebContentsObserver implementation. 215 // content::WebContentsObserver implementation.
217 virtual void RenderFrameCreated( 216 virtual void RenderFrameCreated(
218 content::RenderFrameHost* render_frame_host) OVERRIDE; 217 content::RenderFrameHost* render_frame_host) OVERRIDE;
219 virtual void RenderFrameDeleted(
220 content::RenderFrameHost* render_frame_host) OVERRIDE;
221 virtual void DidStopLoading( 218 virtual void DidStopLoading(
222 content::RenderViewHost* render_view_host) OVERRIDE; 219 content::RenderViewHost* render_view_host) OVERRIDE;
223 virtual void DidStartProvisionalLoadForFrame( 220 virtual void DidStartProvisionalLoadForFrame(
224 int64 frame_id, 221 int64 frame_id,
225 int64 parent_frame_id, 222 int64 parent_frame_id,
226 bool is_main_frame, 223 bool is_main_frame,
227 const GURL& validated_url, 224 const GURL& validated_url,
228 bool is_error_page, 225 bool is_error_page,
229 bool is_iframe_srcdoc, 226 bool is_iframe_srcdoc,
230 content::RenderViewHost* render_view_host) OVERRIDE; 227 content::RenderViewHost* render_view_host) OVERRIDE;
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 430
434 typedef std::vector<history::HistoryAddPageArgs> AddPageVector; 431 typedef std::vector<history::HistoryAddPageArgs> AddPageVector;
435 432
436 // Caches pages to be added to the history. 433 // Caches pages to be added to the history.
437 AddPageVector add_page_vector_; 434 AddPageVector add_page_vector_;
438 435
439 // The alias session storage namespace for this prerender. 436 // The alias session storage namespace for this prerender.
440 scoped_refptr<content::SessionStorageNamespace> 437 scoped_refptr<content::SessionStorageNamespace>
441 alias_session_storage_namespace; 438 alias_session_storage_namespace;
442 439
443 // The RenderFrameHosts for prerender_contents_.
444 std::set<content::RenderFrameHost*> render_frame_hosts_;
445
446 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); 440 DISALLOW_COPY_AND_ASSIGN(PrerenderContents);
447 }; 441 };
448 442
449 } // namespace prerender 443 } // namespace prerender
450 444
451 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ 445 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/plugins/plugin_observer.cc ('k') | chrome/browser/prerender/prerender_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698