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

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

Issue 2297933002: blimp: Set up the CompositorDependencies for blimp in Chrome. (Closed)
Patch Set: retry gpu process failures after crbug.com/643282 Created 4 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 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
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "blimp/client/public/blimp_client_context_delegate.h" 13 #include "blimp/client/public/blimp_client_context_delegate.h"
14 #include "blimp/client/public/contents/blimp_contents.h" 14 #include "blimp/client/public/contents/blimp_contents.h"
15 #include "components/keyed_service/core/keyed_service.h" 15 #include "components/keyed_service/core/keyed_service.h"
16 #include "ui/gfx/native_widget_types.h" 16 #include "ui/gfx/native_widget_types.h"
17 17
18 #if defined(OS_ANDROID) 18 #if defined(OS_ANDROID)
19 #include "base/android/jni_android.h" 19 #include "base/android/jni_android.h"
20 #endif // defined(OS_ANDROID) 20 #endif // defined(OS_ANDROID)
21 21
22 namespace base { 22 namespace base {
23 class SupportsUserData; 23 class SupportsUserData;
24 } 24 }
25 25
26 namespace blimp { 26 namespace blimp {
27 namespace client { 27 namespace client {
28
29 class CompositorDependencies; 28 class CompositorDependencies;
30 29
31 // BlimpClientContext is the core class for the Blimp client. It provides hooks 30 // BlimpClientContext is the core class for the Blimp client. It provides hooks
32 // for creating BlimpContents and other features that are per 31 // for creating BlimpContents and other features that are per
33 // BrowserContext/Profile. 32 // BrowserContext/Profile.
34 class BlimpClientContext : public KeyedService { 33 class BlimpClientContext : public KeyedService {
35 public: 34 public:
36 #if defined(OS_ANDROID) 35 #if defined(OS_ANDROID)
37 // Returns a Java object of the type BlimpClientContext for the given 36 // Returns a Java object of the type BlimpClientContext for the given
38 // BlimpClientContext. 37 // BlimpClientContext.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 BlimpClientContext() = default; 69 BlimpClientContext() = default;
71 70
72 private: 71 private:
73 DISALLOW_COPY_AND_ASSIGN(BlimpClientContext); 72 DISALLOW_COPY_AND_ASSIGN(BlimpClientContext);
74 }; 73 };
75 74
76 } // namespace client 75 } // namespace client
77 } // namespace blimp 76 } // namespace blimp
78 77
79 #endif // BLIMP_CLIENT_PUBLIC_BLIMP_CLIENT_CONTEXT_H_ 78 #endif // BLIMP_CLIENT_PUBLIC_BLIMP_CLIENT_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698