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

Side by Side Diff: chrome/browser/devtools/devtools_target_impl.cc

Issue 147923005: Split ExtensionSystem interface from ExtensionSystemImpl implementation, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re^3base Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/devtools/devtools_target_impl.h" 5 #include "chrome/browser/devtools/devtools_target_impl.h"
6 6
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/devtools/devtools_window.h" 9 #include "chrome/browser/devtools/devtools_window.h"
10 #include "chrome/browser/extensions/extension_host.h" 10 #include "chrome/browser/extensions/extension_host.h"
11 #include "chrome/browser/extensions/extension_service.h" 11 #include "chrome/browser/extensions/extension_service.h"
12 #include "chrome/browser/extensions/extension_system.h"
13 #include "chrome/browser/extensions/extension_tab_util.h" 12 #include "chrome/browser/extensions/extension_tab_util.h"
14 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/ui/tab_contents/tab_contents_iterator.h" 14 #include "chrome/browser/ui/tab_contents/tab_contents_iterator.h"
16 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" 15 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h"
17 #include "chrome/common/extensions/extension_constants.h" 16 #include "chrome/common/extensions/extension_constants.h"
18 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.h"
19 #include "content/public/browser/favicon_status.h" 18 #include "content/public/browser/favicon_status.h"
20 #include "content/public/browser/navigation_entry.h" 19 #include "content/public/browser/navigation_entry.h"
21 #include "content/public/browser/render_view_host.h" 20 #include "content/public/browser/render_view_host.h"
22 #include "content/public/browser/web_contents.h" 21 #include "content/public/browser/web_contents.h"
22 #include "extensions/browser/extension_system.h"
23 23
24 using content::BrowserThread; 24 using content::BrowserThread;
25 using content::DevToolsAgentHost; 25 using content::DevToolsAgentHost;
26 using content::RenderViewHost; 26 using content::RenderViewHost;
27 using content::WebContents; 27 using content::WebContents;
28 using content::WorkerService; 28 using content::WorkerService;
29 29
30 namespace { 30 namespace {
31 31
32 const char kTargetTypeApp[] = "app"; 32 const char kTargetTypeApp[] = "app";
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 322
323 // static 323 // static
324 void DevToolsTargetImpl::EnumerateAllTargets(Callback callback) { 324 void DevToolsTargetImpl::EnumerateAllTargets(Callback callback) {
325 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 325 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
326 content::BrowserThread::PostTask( 326 content::BrowserThread::PostTask(
327 content::BrowserThread::IO, 327 content::BrowserThread::IO,
328 FROM_HERE, 328 FROM_HERE,
329 base::Bind(&DevToolsTargetImpl::EnumerateWorkerTargets, 329 base::Bind(&DevToolsTargetImpl::EnumerateWorkerTargets,
330 base::Bind(&CollectAllTargets, callback))); 330 base::Bind(&CollectAllTargets, callback)));
331 } 331 }
OLDNEW
« no previous file with comments | « chrome/browser/devtools/devtools_sanity_browsertest.cc ('k') | chrome/browser/devtools/devtools_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698