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

Side by Side Diff: public/platform/WebPrerenderingSupport.h

Issue 43443005: Move WebPrerenderingSupport to platform/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | « Source/platform/exported/WebPrerenderingSupport.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 21 matching lines...) Expand all
32 #define WebPrerenderingSupport_h 32 #define WebPrerenderingSupport_h
33 33
34 #include "WebCommon.h" 34 #include "WebCommon.h"
35 35
36 namespace WebKit { 36 namespace WebKit {
37 37
38 class WebPrerender; 38 class WebPrerender;
39 39
40 class WebPrerenderingSupport { 40 class WebPrerenderingSupport {
41 public: 41 public:
42 BLINK_EXPORT static void initialize(WebPrerenderingSupport*); 42 BLINK_PLATFORM_EXPORT static void initialize(WebPrerenderingSupport*);
43 BLINK_EXPORT static void shutdown(); 43 BLINK_PLATFORM_EXPORT static void shutdown();
44 BLINK_EXPORT static WebPrerenderingSupport* current(); 44 BLINK_PLATFORM_EXPORT static WebPrerenderingSupport* current();
45 45
46 // A prerender link element is added when it is inserted into a document. 46 // A prerender link element is added when it is inserted into a document.
47 virtual void add(const WebPrerender&) = 0; 47 virtual void add(const WebPrerender&) = 0;
48 48
49 // A prerender is canceled when it is removed from a document. 49 // A prerender is canceled when it is removed from a document.
50 virtual void cancel(const WebPrerender&) = 0; 50 virtual void cancel(const WebPrerender&) = 0;
51 51
52 // A prerender is abandoned when it's navigated away from or suspended in th e page cache. This 52 // A prerender is abandoned when it's navigated away from or suspended in th e page cache. This
53 // is a weaker signal than cancel(), since the launcher hasn't indicated tha t the prerender isn't 53 // is a weaker signal than cancel(), since the launcher hasn't indicated tha t the prerender isn't
54 // wanted, and we may end up using it after, for instance, a short redirect chain. 54 // wanted, and we may end up using it after, for instance, a short redirect chain.
55 virtual void abandon(const WebPrerender&) = 0; 55 virtual void abandon(const WebPrerender&) = 0;
56 56
57 protected: 57 protected:
58 WebPrerenderingSupport() { } 58 WebPrerenderingSupport() { }
59 virtual ~WebPrerenderingSupport() { } 59 virtual ~WebPrerenderingSupport() { }
60 60
61 private: 61 private:
62 static WebPrerenderingSupport* s_platform; 62 static WebPrerenderingSupport* s_platform;
63 }; 63 };
64 64
65 } // namespace WebKit 65 } // namespace WebKit
66 66
67 #endif // WebPrerenderingSupport_h 67 #endif // WebPrerenderingSupport_h
OLDNEW
« no previous file with comments | « Source/platform/exported/WebPrerenderingSupport.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698