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

Side by Side Diff: chrome/browser/android/offline_pages/evaluation/offline_page_evaluation_bridge.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_EVALUATION_OFFLINE_PAGE_EVALUATION_ BRIDGE_H_ 5 #ifndef CHROME_BROWSER_ANDROID_OFFLINE_PAGES_EVALUATION_OFFLINE_PAGE_EVALUATION_ BRIDGE_H_
6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_EVALUATION_OFFLINE_PAGE_EVALUATION_ BRIDGE_H_ 6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_EVALUATION_OFFLINE_PAGE_EVALUATION_ BRIDGE_H_
7 7
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "base/android/jni_weak_ref.h" 9 #include "base/android/jni_weak_ref.h"
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "components/offline_pages/background/request_coordinator.h" 12 #include "components/offline_pages/background/request_coordinator.h"
13 #include "components/offline_pages/background/request_notifier.h" 13 #include "components/offline_pages/background/request_notifier.h"
14 #include "components/offline_pages/offline_page_model.h" 14 #include "components/offline_pages/offline_page_model.h"
15 15
16 namespace content { 16 namespace content {
17 class BrowserContext; 17 class BrowserContext;
18 } 18 }
19 19
20 namespace offline_pages { 20 namespace offline_pages {
21 21
22 struct OfflinePageItem;
23
24 namespace android { 22 namespace android {
25 23
26 /** 24 /**
27 * Bridge for exposing native implementation which are used by evaluation. 25 * Bridge for exposing native implementation which are used by evaluation.
28 */ 26 */
29 class OfflinePageEvaluationBridge : public OfflinePageModel::Observer, 27 class OfflinePageEvaluationBridge : public OfflinePageModel::Observer,
30 public RequestCoordinator::Observer { 28 public RequestCoordinator::Observer {
31 public: 29 public:
32 static bool Register(JNIEnv* env); 30 static bool Register(JNIEnv* env);
33 static std::unique_ptr<KeyedService> GetTestingRequestCoordinator( 31 static std::unique_ptr<KeyedService> GetTestingRequestCoordinator(
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // Not owned. 99 // Not owned.
102 RequestCoordinator* request_coordinator_; 100 RequestCoordinator* request_coordinator_;
103 101
104 DISALLOW_COPY_AND_ASSIGN(OfflinePageEvaluationBridge); 102 DISALLOW_COPY_AND_ASSIGN(OfflinePageEvaluationBridge);
105 }; 103 };
106 104
107 } // namespace android 105 } // namespace android
108 } // namespace offline_pages 106 } // namespace offline_pages
109 107
110 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_EVALUATION_OFFLINE_PAGE_EVALUATI ON_BRIDGE_H_ 108 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_EVALUATION_OFFLINE_PAGE_EVALUATI ON_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698