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

Side by Side Diff: chrome/browser/automation/automation_util.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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) 2011 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/automation/automation_util.h" 5 #include "chrome/browser/automation/automation_util.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/synchronization/waitable_event.h" 11 #include "base/synchronization/waitable_event.h"
12 #include "base/time.h" 12 #include "base/time.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "chrome/browser/automation/automation_provider.h" 14 #include "chrome/browser/automation/automation_provider.h"
15 #include "chrome/browser/automation/automation_provider_json.h" 15 #include "chrome/browser/automation/automation_provider_json.h"
16 #include "chrome/browser/extensions/extension_service.h" 16 #include "chrome/browser/extensions/extension_service.h"
17 #include "chrome/browser/profiles/profile.h" 17 #include "chrome/browser/profiles/profile.h"
18 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.h" 18 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.h"
19 #include "chrome/browser/ui/browser.h" 19 #include "chrome/browser/ui/browser.h"
20 #include "chrome/browser/ui/browser_list.h" 20 #include "chrome/browser/ui/browser_list.h"
21 #include "content/browser/renderer_host/render_process_host.h" 21 #include "content/browser/renderer_host/render_process_host.h"
22 #include "content/browser/renderer_host/render_view_host.h" 22 #include "content/browser/renderer_host/render_view_host.h"
23 #include "content/browser/tab_contents/tab_contents.h" 23 #include "content/browser/tab_contents/tab_contents.h"
24 #include "content/public/browser/browser_thread.h" 24 #include "content/public/browser/browser_thread.h"
25 #include "net/base/cookie_monster.h" 25 #include "net/base/cookie_monster.h"
26 #include "net/base/cookie_store.h" 26 #include "net/base/cookie_store.h"
27 #include "net/url_request/url_request_context.h" 27 #include "net/url_request/url_request_context.h"
28 #include "net/url_request/url_request_context_getter.h" 28 #include "net/url_request/url_request_context_getter.h"
29 29
30 using content::BrowserThread;
31
30 namespace { 32 namespace {
31 33
32 void GetCookiesCallback(base::WaitableEvent* event, 34 void GetCookiesCallback(base::WaitableEvent* event,
33 std::string* cookies, 35 std::string* cookies,
34 const std::string& cookie_line) { 36 const std::string& cookie_line) {
35 *cookies = cookie_line; 37 *cookies = cookie_line;
36 event->Signal(); 38 event->Signal();
37 } 39 }
38 40
39 void GetCookiesOnIOThread( 41 void GetCookiesOnIOThread(
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 IPC::Message* message) { 376 IPC::Message* message) {
375 bool active = AppModalDialogQueue::GetInstance()->HasActiveDialog(); 377 bool active = AppModalDialogQueue::GetInstance()->HasActiveDialog();
376 if (active) { 378 if (active) {
377 AutomationJSONReply(provider, message).SendError( 379 AutomationJSONReply(provider, message).SendError(
378 "Command cannot be performed because a modal dialog is active"); 380 "Command cannot be performed because a modal dialog is active");
379 } 381 }
380 return active; 382 return active;
381 } 383 }
382 384
383 } // namespace automation_util 385 } // namespace automation_util
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_tab_helper_unittest.cc ('k') | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698