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

Side by Side Diff: blimp/client/test/test_blimp_client_context_delegate.h

Issue 2191743002: Setup the delegate in Chrome, so we may put chrome java functions we need in blimp to the delegate … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix issue when moving around code. 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_TEST_TEST_BLIMP_CLIENT_CONTEXT_DELEGATE_H_ 5 #ifndef BLIMP_CLIENT_TEST_TEST_BLIMP_CLIENT_CONTEXT_DELEGATE_H_
6 #define BLIMP_CLIENT_TEST_TEST_BLIMP_CLIENT_CONTEXT_DELEGATE_H_ 6 #define BLIMP_CLIENT_TEST_TEST_BLIMP_CLIENT_CONTEXT_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "blimp/client/public/blimp_client_context_delegate.h" 9 #include "blimp/client/public/blimp_client_context_delegate.h"
10 10
11 #if defined(OS_ANDROID)
12 #include "base/android/jni_android.h"
nyquist 2016/08/01 18:24:07 Nit: Unindent
13 #endif // defined(OS_ANDROID)
14
11 namespace blimp { 15 namespace blimp {
12 namespace client { 16 namespace client {
13 class BlimpContents; 17 class BlimpContents;
14 18
15 // Helper class to use in tests when a BlimpClientContextDelegate is needed. 19 // Helper class to use in tests when a BlimpClientContextDelegate is needed.
16 class TestBlimpClientContextDelegate : public BlimpClientContextDelegate { 20 class TestBlimpClientContextDelegate : public BlimpClientContextDelegate {
17 public: 21 public:
18 TestBlimpClientContextDelegate(); 22 TestBlimpClientContextDelegate();
19 ~TestBlimpClientContextDelegate() override; 23 ~TestBlimpClientContextDelegate() override;
20 24
21 // BlimpClientContextDelegate implementation. 25 // BlimpClientContextDelegate implementation.
26 #if defined(OS_ANDROID)
27 base::android::ScopedJavaLocalRef<jobject> GetJavaObject() override;
28 #endif // defined(OS_ANDROID)
29
22 void AttachBlimpContentsHelpers(BlimpContents* blimp_contents) override; 30 void AttachBlimpContentsHelpers(BlimpContents* blimp_contents) override;
23 31
24 // Returns the last value of the parameter given to a call to 32 // Returns the last value of the parameter given to a call to
25 // AttachBlimpContentsHelpers. 33 // AttachBlimpContentsHelpers.
26 BlimpContents* GetBlimpContentsWithLastAttachedHelpers(); 34 BlimpContents* GetBlimpContentsWithLastAttachedHelpers();
27 35
28 private: 36 private:
29 // The last value of the parameter given to a call to 37 // The last value of the parameter given to a call to
30 // AttachBlimpContentsHelpers. 38 // AttachBlimpContentsHelpers.
31 BlimpContents* blimp_contents_with_last_attached_helpers_; 39 BlimpContents* blimp_contents_with_last_attached_helpers_;
32 40
33 DISALLOW_COPY_AND_ASSIGN(TestBlimpClientContextDelegate); 41 DISALLOW_COPY_AND_ASSIGN(TestBlimpClientContextDelegate);
34 }; 42 };
35 43
36 } // namespace client 44 } // namespace client
37 } // namespace blimp 45 } // namespace blimp
38 46
39 #endif // BLIMP_CLIENT_TEST_TEST_BLIMP_CLIENT_CONTEXT_DELEGATE_H_ 47 #endif // BLIMP_CLIENT_TEST_TEST_BLIMP_CLIENT_CONTEXT_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698