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

Side by Side Diff: content/browser/android/content_video_view.cc

Issue 2209993003: Add missing using statements for JNI types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/android/content_video_view.h" 5 #include "content/browser/android/content_video_view.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "content/browser/android/content_view_core_impl.h" 10 #include "content/browser/android/content_view_core_impl.h"
11 #include "content/browser/media/android/browser_media_player_manager.h" 11 #include "content/browser/media/android/browser_media_player_manager.h"
12 #include "content/public/browser/user_metrics.h" 12 #include "content/public/browser/user_metrics.h"
13 #include "content/public/common/content_switches.h" 13 #include "content/public/common/content_switches.h"
14 #include "jni/ContentVideoView_jni.h" 14 #include "jni/ContentVideoView_jni.h"
15 15
16 using base::android::AttachCurrentThread; 16 using base::android::AttachCurrentThread;
17 using base::android::CheckException; 17 using base::android::CheckException;
18 using base::android::JavaParamRef;
18 using base::android::ScopedJavaGlobalRef; 19 using base::android::ScopedJavaGlobalRef;
20 using base::android::ScopedJavaLocalRef;
19 using base::UserMetricsAction; 21 using base::UserMetricsAction;
20 using content::RecordAction; 22 using content::RecordAction;
21 23
22 namespace content { 24 namespace content {
23 25
24 namespace { 26 namespace {
25 // There can only be one content video view at a time, this holds onto that 27 // There can only be one content video view at a time, this holds onto that
26 // singleton instance. 28 // singleton instance.
27 ContentVideoView* g_content_video_view = NULL; 29 ContentVideoView* g_content_video_view = NULL;
28 30
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 return JavaObjectWeakGlobalRef(env, nullptr); 167 return JavaObjectWeakGlobalRef(env, nullptr);
166 168
167 return JavaObjectWeakGlobalRef( 169 return JavaObjectWeakGlobalRef(
168 env, 170 env,
169 Java_ContentVideoView_createContentVideoView( 171 Java_ContentVideoView_createContentVideoView(
170 env, 172 env,
171 j_content_view_core.obj(), 173 j_content_view_core.obj(),
172 reinterpret_cast<intptr_t>(this)).obj()); 174 reinterpret_cast<intptr_t>(this)).obj());
173 } 175 }
174 } // namespace content 176 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/child_process_launcher_android.cc ('k') | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698