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

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

Issue 2893653002: Rename Ownership Transferring Methods for Prerenderer (Closed)
Patch Set: Created 3 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
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_MANAGER_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 278
279 // Returns true iff the scheme of the URL given is valid for prerendering. 279 // Returns true iff the scheme of the URL given is valid for prerendering.
280 static bool DoesURLHaveValidScheme(const GURL& url); 280 static bool DoesURLHaveValidScheme(const GURL& url);
281 281
282 // Returns true iff the scheme of the subresource URL given is valid for 282 // Returns true iff the scheme of the subresource URL given is valid for
283 // prerendering. 283 // prerendering.
284 static bool DoesSubresourceURLHaveValidScheme(const GURL& url); 284 static bool DoesSubresourceURLHaveValidScheme(const GURL& url);
285 285
286 // Returns a Value object containing the active pages being prerendered, and 286 // Returns a Value object containing the active pages being prerendered, and
287 // a history of pages which were prerendered. 287 // a history of pages which were prerendered.
288 std::unique_ptr<base::DictionaryValue> GetAsValue() const; 288 std::unique_ptr<base::DictionaryValue> CopyAsValue() const;
289 289
290 // Clears the data indicated by which bits of clear_flags are set. 290 // Clears the data indicated by which bits of clear_flags are set.
291 // 291 //
292 // If the CLEAR_PRERENDER_CONTENTS bit is set, all active prerenders are 292 // If the CLEAR_PRERENDER_CONTENTS bit is set, all active prerenders are
293 // cancelled and then deleted, and any WebContents queued for destruction are 293 // cancelled and then deleted, and any WebContents queued for destruction are
294 // destroyed as well. 294 // destroyed as well.
295 // 295 //
296 // If the CLEAR_PRERENDER_HISTORY bit is set, the prerender history is 296 // If the CLEAR_PRERENDER_HISTORY bit is set, the prerender history is
297 // cleared, including any entries newly created by destroying them in 297 // cleared, including any entries newly created by destroying them in
298 // response to the CLEAR_PRERENDER_CONTENTS flag. 298 // response to the CLEAR_PRERENDER_CONTENTS flag.
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 std::vector<std::unique_ptr<PrerenderManagerObserver>> observers_; 639 std::vector<std::unique_ptr<PrerenderManagerObserver>> observers_;
640 640
641 base::WeakPtrFactory<PrerenderManager> weak_factory_; 641 base::WeakPtrFactory<PrerenderManager> weak_factory_;
642 642
643 DISALLOW_COPY_AND_ASSIGN(PrerenderManager); 643 DISALLOW_COPY_AND_ASSIGN(PrerenderManager);
644 }; 644 };
645 645
646 } // namespace prerender 646 } // namespace prerender
647 647
648 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_ 648 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698