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

Side by Side Diff: chromecast/browser/android/cast_window_manager.cc

Issue 638803002: Reorganizes Chromecast code to better reflect functional dependencies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: extra DEPS: chromecast/crash/android --> chromecast/common Created 6 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chromecast/shell/browser/android/cast_window_manager.h" 5 #include "chromecast/browser/android/cast_window_manager.h"
6 6
7 #include <jni.h> 7 #include <jni.h>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_string.h" 10 #include "base/android/jni_string.h"
11 #include "base/android/scoped_java_ref.h" 11 #include "base/android/scoped_java_ref.h"
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/lazy_instance.h" 13 #include "base/lazy_instance.h"
14 #include "chromecast/browser/android/cast_window_android.h"
15 #include "chromecast/browser/cast_browser_context.h"
16 #include "chromecast/browser/cast_browser_main_parts.h"
17 #include "chromecast/browser/cast_browser_process.h"
18 #include "chromecast/browser/cast_content_browser_client.h"
14 #include "chromecast/common/chromecast_config.h" 19 #include "chromecast/common/chromecast_config.h"
15 #include "chromecast/common/pref_names.h" 20 #include "chromecast/common/pref_names.h"
16 #include "chromecast/shell/browser/android/cast_window_android.h"
17 #include "chromecast/shell/browser/cast_browser_context.h"
18 #include "chromecast/shell/browser/cast_browser_main_parts.h"
19 #include "chromecast/shell/browser/cast_browser_process.h"
20 #include "chromecast/shell/browser/cast_content_browser_client.h"
21 #include "content/public/browser/browser_thread.h" 21 #include "content/public/browser/browser_thread.h"
22 #include "content/public/browser/web_contents.h" 22 #include "content/public/browser/web_contents.h"
23 #include "ipc/ipc_channel.h" 23 #include "ipc/ipc_channel.h"
24 #include "jni/CastWindowManager_jni.h" 24 #include "jni/CastWindowManager_jni.h"
25 #include "url/gurl.h" 25 #include "url/gurl.h"
26 26
27 namespace { 27 namespace {
28 28
29 base::LazyInstance<base::android::ScopedJavaGlobalRef<jobject> > 29 base::LazyInstance<base::android::ScopedJavaGlobalRef<jobject> >
30 g_window_manager = LAZY_INSTANCE_INITIALIZER; 30 g_window_manager = LAZY_INSTANCE_INITIALIZER;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 void EnableDevTools(JNIEnv* env, jclass clazz, jboolean enable) { 79 void EnableDevTools(JNIEnv* env, jclass clazz, jboolean enable) {
80 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); 80 DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
81 // The specific port value doesn't matter since Android uses Unix domain 81 // The specific port value doesn't matter since Android uses Unix domain
82 // sockets, only whether or not it is zero. 82 // sockets, only whether or not it is zero.
83 chromecast::ChromecastConfig::GetInstance()->pref_service()-> 83 chromecast::ChromecastConfig::GetInstance()->pref_service()->
84 SetInteger(prefs::kRemoteDebuggingPort, enable ? 1 : 0); 84 SetInteger(prefs::kRemoteDebuggingPort, enable ? 1 : 0);
85 } 85 }
86 86
87 } // namespace shell 87 } // namespace shell
88 } // namespace chromecast 88 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/browser/android/cast_window_manager.h ('k') | chromecast/browser/android/external_video_surface_container_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698