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

Side by Side Diff: chrome/browser/android/browsing_data/browsing_data_counter_bridge.h

Issue 2127403002: Make browsing_data component a layered component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed output_name from components/browsing_data/content/BUILD.gn Created 4 years, 5 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 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_BROWSING_DATA_BROWSING_DATA_COUNTER_BRIDGE_H_ 5 #ifndef CHROME_BROWSER_ANDROID_BROWSING_DATA_BROWSING_DATA_COUNTER_BRIDGE_H_
6 #define CHROME_BROWSER_ANDROID_BROWSING_DATA_BROWSING_DATA_COUNTER_BRIDGE_H_ 6 #define CHROME_BROWSER_ANDROID_BROWSING_DATA_BROWSING_DATA_COUNTER_BRIDGE_H_
7 7
8 #include "base/android/jni_weak_ref.h" 8 #include "base/android/jni_weak_ref.h"
9 #include "base/android/scoped_java_ref.h" 9 #include "base/android/scoped_java_ref.h"
10 #include "components/browsing_data/counters/browsing_data_counter.h" 10 #include "components/browsing_data/core/counters/browsing_data_counter.h"
11 11
12 class Profile; 12 class Profile;
13 13
14 // This class is a wrapper for BrowsingDataCounter (C++ backend) to be used by 14 // This class is a wrapper for BrowsingDataCounter (C++ backend) to be used by
15 // ClearBrowsingDataFragment (Java UI). 15 // ClearBrowsingDataFragment (Java UI).
16 class BrowsingDataCounterBridge { 16 class BrowsingDataCounterBridge {
17 public: 17 public:
18 // Creates a BrowsingDataCounterBridge for a certain browsing data type. 18 // Creates a BrowsingDataCounterBridge for a certain browsing data type.
19 // The |data_type| is a value of the enum BrowsingDataType. 19 // The |data_type| is a value of the enum BrowsingDataType.
20 BrowsingDataCounterBridge( 20 BrowsingDataCounterBridge(
(...skipping 12 matching lines...) Expand all
33 void onCounterFinished( 33 void onCounterFinished(
34 std::unique_ptr<browsing_data::BrowsingDataCounter::Result> result); 34 std::unique_ptr<browsing_data::BrowsingDataCounter::Result> result);
35 35
36 base::android::ScopedJavaGlobalRef<jobject> jobject_; 36 base::android::ScopedJavaGlobalRef<jobject> jobject_;
37 std::unique_ptr<browsing_data::BrowsingDataCounter> counter_; 37 std::unique_ptr<browsing_data::BrowsingDataCounter> counter_;
38 38
39 DISALLOW_COPY_AND_ASSIGN(BrowsingDataCounterBridge); 39 DISALLOW_COPY_AND_ASSIGN(BrowsingDataCounterBridge);
40 }; 40 };
41 41
42 #endif // CHROME_BROWSER_ANDROID_BROWSING_DATA_BROWSING_DATA_COUNTER_BRIDGE_H_ 42 #endif // CHROME_BROWSER_ANDROID_BROWSING_DATA_BROWSING_DATA_COUNTER_BRIDGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/android/browsing_data/browsing_data_counter_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698