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

Side by Side Diff: blimp/client/app/android/blimp_client_session_android.cc

Issue 2292723003: Move remaining Blimp feature code to core. (Closed)
Patch Set: Fix build break 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
« no previous file with comments | « blimp/client/BUILD.gn ('k') | blimp/client/app/android/blimp_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "blimp/client/app/android/blimp_client_session_android.h" 5 #include "blimp/client/app/android/blimp_client_session_android.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/android/jni_string.h" 9 #include "base/android/jni_string.h"
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
11 #include "base/threading/thread_task_runner_handle.h" 11 #include "base/threading/thread_task_runner_handle.h"
12 #include "blimp/client/app/user_agent.h" 12 #include "blimp/client/app/user_agent.h"
13 #include "blimp/client/core/contents/tab_control_feature.h" 13 #include "blimp/client/core/contents/tab_control_feature.h"
14 #include "blimp/client/core/session/assignment_source.h" 14 #include "blimp/client/core/session/assignment_source.h"
15 #include "blimp/client/feature/settings_feature.h" 15 #include "blimp/client/core/settings/settings_feature.h"
16 #include "blimp/net/blimp_stats.h" 16 #include "blimp/net/blimp_stats.h"
17 #include "components/version_info/version_info.h" 17 #include "components/version_info/version_info.h"
18 #include "jni/BlimpClientSession_jni.h" 18 #include "jni/BlimpClientSession_jni.h"
19 #include "net/base/net_errors.h" 19 #include "net/base/net_errors.h"
20 20
21 using base::android::JavaParamRef; 21 using base::android::JavaParamRef;
22 22
23 namespace blimp { 23 namespace blimp {
24 namespace client { 24 namespace client {
25 namespace { 25 namespace {
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 const base::android::JavaParamRef<jobject>& jobj) { 124 const base::android::JavaParamRef<jobject>& jobj) {
125 BlimpStats* stats = BlimpStats::GetInstance(); 125 BlimpStats* stats = BlimpStats::GetInstance();
126 int metrics[] = {stats->Get(BlimpStats::BYTES_RECEIVED), 126 int metrics[] = {stats->Get(BlimpStats::BYTES_RECEIVED),
127 stats->Get(BlimpStats::BYTES_SENT), 127 stats->Get(BlimpStats::BYTES_SENT),
128 stats->Get(BlimpStats::COMMIT)}; 128 stats->Get(BlimpStats::COMMIT)};
129 return base::android::ToJavaIntArray(env, metrics, arraysize(metrics)); 129 return base::android::ToJavaIntArray(env, metrics, arraysize(metrics));
130 } 130 }
131 131
132 } // namespace client 132 } // namespace client
133 } // namespace blimp 133 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/client/BUILD.gn ('k') | blimp/client/app/android/blimp_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698