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

Side by Side Diff: blimp/client/public/blimp_client_context.h

Issue 2241623002: blimp: Move compositing, input and render widget feature to client/core. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments from #7 Created 4 years, 4 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 BLIMP_CLIENT_PUBLIC_BLIMP_CLIENT_CONTEXT_H_ 5 #ifndef BLIMP_CLIENT_PUBLIC_BLIMP_CLIENT_CONTEXT_H_
6 #define BLIMP_CLIENT_PUBLIC_BLIMP_CLIENT_CONTEXT_H_ 6 #define BLIMP_CLIENT_PUBLIC_BLIMP_CLIENT_CONTEXT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 19 matching lines...) Expand all
30 // BrowserContext/Profile. 30 // BrowserContext/Profile.
31 class BlimpClientContext : public KeyedService { 31 class BlimpClientContext : public KeyedService {
32 public: 32 public:
33 #if defined(OS_ANDROID) 33 #if defined(OS_ANDROID)
34 // Returns a Java object of the type BlimpClientContext for the given 34 // Returns a Java object of the type BlimpClientContext for the given
35 // BlimpClientContext. 35 // BlimpClientContext.
36 static base::android::ScopedJavaLocalRef<jobject> GetJavaObject( 36 static base::android::ScopedJavaLocalRef<jobject> GetJavaObject(
37 BlimpClientContext* blimp_client_context); 37 BlimpClientContext* blimp_client_context);
38 #endif // defined(OS_ANDROID) 38 #endif // defined(OS_ANDROID)
39 39
40 // Must be called only once, on browser startup.
41 static void Initialize();
42
43 // Must be called only once, on browser shutdown.
44 static void Terminate();
45
40 // Creates a BlimpClientContext. The implementation of this function 46 // Creates a BlimpClientContext. The implementation of this function
41 // depends on whether the core or dummy implementation of Blimp has been 47 // depends on whether the core or dummy implementation of Blimp has been
42 // linked in. 48 // linked in.
43 // The |io_thread_task_runner| must be the task runner to use for IO 49 // The |io_thread_task_runner| must be the task runner to use for IO
44 // operations. 50 // operations.
45 // The |file_thread_task_runner| must be the task runner to use for file 51 // The |file_thread_task_runner| must be the task runner to use for file
46 // operations. 52 // operations.
47 static BlimpClientContext* Create( 53 static BlimpClientContext* Create(
48 scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner, 54 scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner,
49 scoped_refptr<base::SingleThreadTaskRunner> file_thread_task_runner); 55 scoped_refptr<base::SingleThreadTaskRunner> file_thread_task_runner);
(...skipping 11 matching lines...) Expand all
61 BlimpClientContext() = default; 67 BlimpClientContext() = default;
62 68
63 private: 69 private:
64 DISALLOW_COPY_AND_ASSIGN(BlimpClientContext); 70 DISALLOW_COPY_AND_ASSIGN(BlimpClientContext);
65 }; 71 };
66 72
67 } // namespace client 73 } // namespace client
68 } // namespace blimp 74 } // namespace blimp
69 75
70 #endif // BLIMP_CLIENT_PUBLIC_BLIMP_CLIENT_CONTEXT_H_ 76 #endif // BLIMP_CLIENT_PUBLIC_BLIMP_CLIENT_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698