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

Side by Side Diff: chrome/browser/automation/automation_resource_message_filter.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_resource_message_filter.h" 5 #include "chrome/browser/automation/automation_resource_message_filter.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
11 #include "chrome/browser/automation/url_request_automation_job.h" 11 #include "chrome/browser/automation/url_request_automation_job.h"
12 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 12 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
13 #include "chrome/browser/net/url_request_mock_util.h" 13 #include "chrome/browser/net/url_request_mock_util.h"
14 #include "chrome/common/automation_messages.h" 14 #include "chrome/common/automation_messages.h"
15 #include "chrome/common/chrome_paths.h" 15 #include "chrome/common/chrome_paths.h"
16 #include "chrome/common/render_messages.h" 16 #include "chrome/common/render_messages.h"
17 #include "content/browser/browser_message_filter.h" 17 #include "content/browser/browser_message_filter.h"
18 #include "content/public/browser/browser_thread.h" 18 #include "content/public/browser/browser_thread.h"
19 #include "googleurl/src/gurl.h" 19 #include "googleurl/src/gurl.h"
20 #include "net/base/net_errors.h" 20 #include "net/base/net_errors.h"
21 #include "net/url_request/url_request_context.h" 21 #include "net/url_request/url_request_context.h"
22 #include "net/url_request/url_request_filter.h" 22 #include "net/url_request/url_request_filter.h"
23 23
24 using content::BrowserThread;
25
24 base::LazyInstance<AutomationResourceMessageFilter::RenderViewMap> 26 base::LazyInstance<AutomationResourceMessageFilter::RenderViewMap>
25 AutomationResourceMessageFilter::filtered_render_views_( 27 AutomationResourceMessageFilter::filtered_render_views_(
26 base::LINKER_INITIALIZED); 28 base::LINKER_INITIALIZED);
27 29
28 base::LazyInstance<AutomationResourceMessageFilter::CompletionCallbackMap> 30 base::LazyInstance<AutomationResourceMessageFilter::CompletionCallbackMap>
29 AutomationResourceMessageFilter::completion_callback_map_( 31 AutomationResourceMessageFilter::completion_callback_map_(
30 base::LINKER_INITIALIZED); 32 base::LINKER_INITIALIZED);
31 33
32 int AutomationResourceMessageFilter::unique_request_id_ = 1; 34 int AutomationResourceMessageFilter::unique_request_id_ = 1;
33 int AutomationResourceMessageFilter::next_completion_callback_id_ = 0; 35 int AutomationResourceMessageFilter::next_completion_callback_id_ = 0;
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 492
491 for (RequestMap::iterator index = pending_requests.begin(); 493 for (RequestMap::iterator index = pending_requests.begin();
492 index != pending_requests.end(); index++) { 494 index != pending_requests.end(); index++) {
493 URLRequestAutomationJob* job = (*index).second; 495 URLRequestAutomationJob* job = (*index).second;
494 DCHECK_EQ(job->message_filter(), old_filter); 496 DCHECK_EQ(job->message_filter(), old_filter);
495 DCHECK(job->is_pending()); 497 DCHECK(job->is_pending());
496 // StartPendingJob will register the job with the new filter. 498 // StartPendingJob will register the job with the new filter.
497 job->StartPendingJob(tab_handle, new_filter); 499 job->StartPendingJob(tab_handle, new_filter);
498 } 500 }
499 } 501 }
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_provider_unittest.cc ('k') | chrome/browser/automation/automation_tab_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698