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

Side by Side Diff: chrome/browser/devtools/devtools_window.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 (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/devtools/devtools_window.h" 5 #include "chrome/browser/devtools/devtools_window.h"
6
6 #include <algorithm> 7 #include <algorithm>
7 8
8 #include "base/command_line.h" 9 #include "base/command_line.h"
9 #include "base/json/json_reader.h" 10 #include "base/json/json_reader.h"
10 #include "base/json/json_writer.h" 11 #include "base/json/json_writer.h"
11 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
12 #include "base/prefs/scoped_user_pref_update.h" 13 #include "base/prefs/scoped_user_pref_update.h"
13 #include "base/strings/string_number_conversions.h" 14 #include "base/strings/string_number_conversions.h"
14 #include "base/strings/string_util.h" 15 #include "base/strings/string_util.h"
15 #include "base/strings/utf_string_conversions.h" 16 #include "base/strings/utf_string_conversions.h"
16 #include "base/values.h" 17 #include "base/values.h"
17 #include "chrome/browser/browser_process.h" 18 #include "chrome/browser/browser_process.h"
18 #include "chrome/browser/chrome_notification_types.h" 19 #include "chrome/browser/chrome_notification_types.h"
19 #include "chrome/browser/extensions/api/debugger/debugger_api.h" 20 #include "chrome/browser/extensions/api/debugger/debugger_api.h"
20 #include "chrome/browser/extensions/extension_service.h" 21 #include "chrome/browser/extensions/extension_service.h"
21 #include "chrome/browser/extensions/extension_system.h"
22 #include "chrome/browser/extensions/extension_web_contents_observer.h" 22 #include "chrome/browser/extensions/extension_web_contents_observer.h"
23 #include "chrome/browser/file_select_helper.h" 23 #include "chrome/browser/file_select_helper.h"
24 #include "chrome/browser/infobars/confirm_infobar_delegate.h" 24 #include "chrome/browser/infobars/confirm_infobar_delegate.h"
25 #include "chrome/browser/infobars/infobar.h" 25 #include "chrome/browser/infobars/infobar.h"
26 #include "chrome/browser/prefs/pref_service_syncable.h" 26 #include "chrome/browser/prefs/pref_service_syncable.h"
27 #include "chrome/browser/profiles/profile.h" 27 #include "chrome/browser/profiles/profile.h"
28 #include "chrome/browser/sessions/session_tab_helper.h" 28 #include "chrome/browser/sessions/session_tab_helper.h"
29 #include "chrome/browser/themes/theme_properties.h" 29 #include "chrome/browser/themes/theme_properties.h"
30 #include "chrome/browser/themes/theme_service.h" 30 #include "chrome/browser/themes/theme_service.h"
31 #include "chrome/browser/themes/theme_service_factory.h" 31 #include "chrome/browser/themes/theme_service_factory.h"
(...skipping 25 matching lines...) Expand all
57 #include "content/public/browser/render_process_host.h" 57 #include "content/public/browser/render_process_host.h"
58 #include "content/public/browser/render_view_host.h" 58 #include "content/public/browser/render_view_host.h"
59 #include "content/public/browser/user_metrics.h" 59 #include "content/public/browser/user_metrics.h"
60 #include "content/public/browser/web_contents.h" 60 #include "content/public/browser/web_contents.h"
61 #include "content/public/browser/web_contents_observer.h" 61 #include "content/public/browser/web_contents_observer.h"
62 #include "content/public/browser/web_contents_view.h" 62 #include "content/public/browser/web_contents_view.h"
63 #include "content/public/common/bindings_policy.h" 63 #include "content/public/common/bindings_policy.h"
64 #include "content/public/common/content_client.h" 64 #include "content/public/common/content_client.h"
65 #include "content/public/common/page_transition_types.h" 65 #include "content/public/common/page_transition_types.h"
66 #include "content/public/common/url_constants.h" 66 #include "content/public/common/url_constants.h"
67 #include "extensions/browser/extension_system.h"
67 #include "extensions/common/extension_set.h" 68 #include "extensions/common/extension_set.h"
68 #include "grit/generated_resources.h" 69 #include "grit/generated_resources.h"
69 #include "ui/base/l10n/l10n_util.h" 70 #include "ui/base/l10n/l10n_util.h"
70 71
71 using base::DictionaryValue; 72 using base::DictionaryValue;
72 using content::BrowserThread; 73 using content::BrowserThread;
73 using content::DevToolsAgentHost; 74 using content::DevToolsAgentHost;
74 75
75 76
76 // DevToolsConfirmInfoBarDelegate --------------------------------------------- 77 // DevToolsConfirmInfoBarDelegate ---------------------------------------------
(...skipping 1396 matching lines...) Expand 10 before | Expand all | Expand 10 after
1473 if (load_state_ == kLoadCompleted) 1474 if (load_state_ == kLoadCompleted)
1474 LoadCompleted(); 1475 LoadCompleted();
1475 } 1476 }
1476 1477
1477 void DevToolsWindow::LoadCompleted() { 1478 void DevToolsWindow::LoadCompleted() {
1478 Show(action_on_load_); 1479 Show(action_on_load_);
1479 action_on_load_ = DevToolsToggleAction::NoOp(); 1480 action_on_load_ = DevToolsToggleAction::NoOp();
1480 UpdateTheme(); 1481 UpdateTheme();
1481 AddDevToolsExtensionsToClient(); 1482 AddDevToolsExtensionsToClient();
1482 } 1483 }
OLDNEW
« no previous file with comments | « chrome/browser/devtools/devtools_target_impl.cc ('k') | chrome/browser/download/download_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698