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

Side by Side Diff: chrome/browser/external_protocol/external_protocol_handler.cc

Issue 10810027: IWYU and other random cleanup in chrome/browser/ui. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 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/external_protocol/external_protocol_handler.h" 5 #include "chrome/browser/external_protocol/external_protocol_handler.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "base/string_util.h" 12 #include "base/string_util.h"
13 #include "base/threading/thread.h" 13 #include "base/threading/thread.h"
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 #include "chrome/browser/browser_process_impl.h" 15 #include "chrome/browser/browser_process.h"
16 #include "chrome/browser/platform_util.h" 16 #include "chrome/browser/platform_util.h"
17 #include "chrome/browser/prefs/pref_service.h" 17 #include "chrome/browser/prefs/pref_service.h"
18 #include "chrome/browser/prefs/scoped_user_pref_update.h" 18 #include "chrome/browser/prefs/scoped_user_pref_update.h"
19 #include "chrome/common/pref_names.h" 19 #include "chrome/common/pref_names.h"
20 #include "content/public/browser/browser_thread.h" 20 #include "content/public/browser/browser_thread.h"
21 #include "googleurl/src/gurl.h" 21 #include "googleurl/src/gurl.h"
22 #include "net/base/escape.h" 22 #include "net/base/escape.h"
23 23
24 using content::BrowserThread; 24 using content::BrowserThread;
25 25
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 virtual bool IsOwnedByWorker() OVERRIDE { return true; } 129 virtual bool IsOwnedByWorker() OVERRIDE { return true; }
130 130
131 private: 131 private:
132 ExternalProtocolHandler::Delegate* delegate_; 132 ExternalProtocolHandler::Delegate* delegate_;
133 GURL escaped_url_; 133 GURL escaped_url_;
134 int render_process_host_id_; 134 int render_process_host_id_;
135 int tab_contents_id_; 135 int tab_contents_id_;
136 bool prompt_user_; 136 bool prompt_user_;
137 }; 137 };
138 138
139 } // namespace 139 } // namespace
140 140
141 // static 141 // static
142 void ExternalProtocolHandler::PrepopulateDictionary(DictionaryValue* win_pref) { 142 void ExternalProtocolHandler::PrepopulateDictionary(DictionaryValue* win_pref) {
143 static bool is_warm = false; 143 static bool is_warm = false;
144 if (is_warm) 144 if (is_warm)
145 return; 145 return;
146 is_warm = true; 146 is_warm = true;
147 147
148 static const char* const denied_schemes[] = { 148 static const char* const denied_schemes[] = {
149 "afp", 149 "afp",
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 // static 296 // static
297 void ExternalProtocolHandler::RegisterPrefs(PrefService* prefs) { 297 void ExternalProtocolHandler::RegisterPrefs(PrefService* prefs) {
298 prefs->RegisterDictionaryPref(prefs::kExcludedSchemes); 298 prefs->RegisterDictionaryPref(prefs::kExcludedSchemes);
299 } 299 }
300 300
301 // static 301 // static
302 void ExternalProtocolHandler::PermitLaunchUrl() { 302 void ExternalProtocolHandler::PermitLaunchUrl() {
303 DCHECK_EQ(MessageLoop::TYPE_UI, MessageLoop::current()->type()); 303 DCHECK_EQ(MessageLoop::TYPE_UI, MessageLoop::current()->type());
304 g_accept_requests = true; 304 g_accept_requests = true;
305 } 305 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/discovery/discovery_api_unittest.cc ('k') | chrome/browser/feedback/feedback_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698