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

Side by Side Diff: chrome/browser/android/offline_pages/prerendering_loader.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_ANDROID_OFFLINE_PAGES_PRERENDERING_LOADER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_OFFLINE_PAGES_PRERENDERING_LOADER_H_
6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_PRERENDERING_LOADER_H_ 6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_PRERENDERING_LOADER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "chrome/browser/android/offline_pages/prerender_adapter.h" 11 #include "chrome/browser/android/offline_pages/prerender_adapter.h"
12 #include "components/offline_pages/background/offliner.h" 12 #include "components/offline_pages/background/offliner.h"
13 #include "components/offline_pages/snapshot_controller.h" 13 #include "components/offline_pages/snapshot_controller.h"
14 14
15 class GURL; 15 class GURL;
16 16
17 namespace content { 17 namespace content {
18 class BrowserContext; 18 class BrowserContext;
19 class WebContents; 19 class WebContents;
20 class SessionStorageNamespace;
21 } // namespace content 20 } // namespace content
22 21
23 namespace gfx {
24 class Size;
25 } // namespace gfx
26
27 namespace offline_pages { 22 namespace offline_pages {
28 23
29 // A client-side page loader that integrates with the PrerenderManager to do 24 // A client-side page loader that integrates with the PrerenderManager to do
30 // the page loading in the background. It operates on a single thread and 25 // the page loading in the background. It operates on a single thread and
31 // needs to run on BrowserThread::UI to work with the PrerenderManager. 26 // needs to run on BrowserThread::UI to work with the PrerenderManager.
32 // It supports a single load request at a time. 27 // It supports a single load request at a time.
33 class PrerenderingLoader : public PrerenderAdapter::Observer, 28 class PrerenderingLoader : public PrerenderAdapter::Observer,
34 public SnapshotController::Client { 29 public SnapshotController::Client {
35 public: 30 public:
36 // Reports status of a load page request with loaded contents if available. 31 // Reports status of a load page request with loaded contents if available.
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // Callback to call when the active load request completes, fails, or is 119 // Callback to call when the active load request completes, fails, or is
125 // canceled. 120 // canceled.
126 LoadPageCallback callback_; 121 LoadPageCallback callback_;
127 122
128 DISALLOW_COPY_AND_ASSIGN(PrerenderingLoader); 123 DISALLOW_COPY_AND_ASSIGN(PrerenderingLoader);
129 }; 124 };
130 125
131 } // namespace offline_pages 126 } // namespace offline_pages
132 127
133 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_PRERENDERING_LOADER_H_ 128 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_PRERENDERING_LOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698