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

Side by Side Diff: chrome/browser/android/dev_tools_server.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 "chrome/browser/android/dev_tools_server.h" 5 #include "chrome/browser/android/dev_tools_server.h"
6 6
7 #include <pwd.h> 7 #include <pwd.h>
8 #include <cstring> 8 #include <cstring>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "content/public/common/content_switches.h" 42 #include "content/public/common/content_switches.h"
43 #include "content/public/common/url_constants.h" 43 #include "content/public/common/url_constants.h"
44 #include "content/public/common/user_agent.h" 44 #include "content/public/common/user_agent.h"
45 #include "grit/browser_resources.h" 45 #include "grit/browser_resources.h"
46 #include "jni/DevToolsServer_jni.h" 46 #include "jni/DevToolsServer_jni.h"
47 #include "net/base/net_errors.h" 47 #include "net/base/net_errors.h"
48 #include "net/socket/unix_domain_server_socket_posix.h" 48 #include "net/socket/unix_domain_server_socket_posix.h"
49 #include "net/url_request/url_request_context_getter.h" 49 #include "net/url_request/url_request_context_getter.h"
50 #include "ui/base/resource/resource_bundle.h" 50 #include "ui/base/resource/resource_bundle.h"
51 51
52 using base::android::JavaParamRef;
52 using content::DevToolsAgentHost; 53 using content::DevToolsAgentHost;
53 using content::RenderViewHost; 54 using content::RenderViewHost;
54 using content::WebContents; 55 using content::WebContents;
55 using devtools_http_handler::DevToolsHttpHandler; 56 using devtools_http_handler::DevToolsHttpHandler;
56 57
57 namespace { 58 namespace {
58 59
59 // TL;DR: Do not change this string. 60 // TL;DR: Do not change this string.
60 // 61 //
61 // Desktop Chrome relies on this format to identify debuggable apps on Android 62 // Desktop Chrome relies on this format to identify debuggable apps on Android
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 jlong server, 260 jlong server,
260 jboolean enabled, 261 jboolean enabled,
261 jboolean allow_debug_permission) { 262 jboolean allow_debug_permission) {
262 DevToolsServer* devtools_server = reinterpret_cast<DevToolsServer*>(server); 263 DevToolsServer* devtools_server = reinterpret_cast<DevToolsServer*>(server);
263 if (enabled) { 264 if (enabled) {
264 devtools_server->Start(allow_debug_permission); 265 devtools_server->Start(allow_debug_permission);
265 } else { 266 } else {
266 devtools_server->Stop(); 267 devtools_server->Stop();
267 } 268 }
268 } 269 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698