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

Side by Side Diff: components/service_tab_launcher/browser/android/service_tab_launcher.h

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_SERVICE_TAB_LAUNCHER_BROWSER_ANDROID_SERVICE_TAB_LAUNCHER_H_ 5 #ifndef COMPONENTS_SERVICE_TAB_LAUNCHER_BROWSER_ANDROID_SERVICE_TAB_LAUNCHER_H_
6 #define COMPONENTS_SERVICE_TAB_LAUNCHER_BROWSER_ANDROID_SERVICE_TAB_LAUNCHER_H_ 6 #define COMPONENTS_SERVICE_TAB_LAUNCHER_BROWSER_ANDROID_SERVICE_TAB_LAUNCHER_H_
7 7
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "base/callback_forward.h" 9 #include "base/callback_forward.h"
10 #include "base/id_map.h" 10 #include "base/id_map.h"
(...skipping 26 matching lines...) Expand all
37 const TabLaunchedCallback& callback); 37 const TabLaunchedCallback& callback);
38 38
39 // To be called when the tab for |request_id| has launched, with the 39 // To be called when the tab for |request_id| has launched, with the
40 // associated |web_contents|. The WebContents must not yet have started 40 // associated |web_contents|. The WebContents must not yet have started
41 // the provisional load for the main frame of the navigation. 41 // the provisional load for the main frame of the navigation.
42 void OnTabLaunched(int request_id, content::WebContents* web_contents); 42 void OnTabLaunched(int request_id, content::WebContents* web_contents);
43 43
44 static bool RegisterServiceTabLauncher(JNIEnv* env); 44 static bool RegisterServiceTabLauncher(JNIEnv* env);
45 45
46 private: 46 private:
47 friend struct DefaultSingletonTraits<ServiceTabLauncher>; 47 friend struct base::DefaultSingletonTraits<ServiceTabLauncher>;
48 48
49 ServiceTabLauncher(); 49 ServiceTabLauncher();
50 ~ServiceTabLauncher(); 50 ~ServiceTabLauncher();
51 51
52 IDMap<TabLaunchedCallback> tab_launched_callbacks_; 52 IDMap<TabLaunchedCallback> tab_launched_callbacks_;
53 53
54 base::android::ScopedJavaGlobalRef<jobject> java_object_; 54 base::android::ScopedJavaGlobalRef<jobject> java_object_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(ServiceTabLauncher); 56 DISALLOW_COPY_AND_ASSIGN(ServiceTabLauncher);
57 }; 57 };
58 58
59 } // namespace service_tab_launcher 59 } // namespace service_tab_launcher
60 60
61 #endif // COMPONENTS_SERVICE_TAB_LAUNCHER_BROWSER_ANDROID_SERVICE_TAB_LAUNCHER_ H_ 61 #endif // COMPONENTS_SERVICE_TAB_LAUNCHER_BROWSER_ANDROID_SERVICE_TAB_LAUNCHER_ H_
OLDNEW
« no previous file with comments | « components/rlz/rlz_tracker.cc ('k') | components/service_tab_launcher/browser/android/service_tab_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698