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

Side by Side Diff: content/browser/worker_host/worker_process_host.cc

Issue 12210030: Linux/ChromeOS Chromium style checker cleanup, content/ edition. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 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 "content/browser/worker_host/worker_process_host.h" 5 #include "content/browser/worker_host/worker_process_host.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 public: 62 public:
63 explicit URLRequestContextSelector( 63 explicit URLRequestContextSelector(
64 net::URLRequestContextGetter* url_request_context, 64 net::URLRequestContextGetter* url_request_context,
65 net::URLRequestContextGetter* media_url_request_context) 65 net::URLRequestContextGetter* media_url_request_context)
66 : url_request_context_(url_request_context), 66 : url_request_context_(url_request_context),
67 media_url_request_context_(media_url_request_context) { 67 media_url_request_context_(media_url_request_context) {
68 } 68 }
69 virtual ~URLRequestContextSelector() {} 69 virtual ~URLRequestContextSelector() {}
70 70
71 virtual net::URLRequestContext* GetRequestContext( 71 virtual net::URLRequestContext* GetRequestContext(
72 ResourceType::Type resource_type) { 72 ResourceType::Type resource_type) OVERRIDE {
73 if (resource_type == ResourceType::MEDIA) 73 if (resource_type == ResourceType::MEDIA)
74 return media_url_request_context_->GetURLRequestContext(); 74 return media_url_request_context_->GetURLRequestContext();
75 return url_request_context_->GetURLRequestContext(); 75 return url_request_context_->GetURLRequestContext();
76 } 76 }
77 77
78 private: 78 private:
79 net::URLRequestContextGetter* url_request_context_; 79 net::URLRequestContextGetter* url_request_context_;
80 net::URLRequestContextGetter* media_url_request_context_; 80 net::URLRequestContextGetter* media_url_request_context_;
81 }; 81 };
82 82
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 return false; 667 return false;
668 } 668 }
669 669
670 WorkerProcessHost::WorkerInstance::FilterInfo 670 WorkerProcessHost::WorkerInstance::FilterInfo
671 WorkerProcessHost::WorkerInstance::GetFilter() const { 671 WorkerProcessHost::WorkerInstance::GetFilter() const {
672 DCHECK(NumFilters() == 1); 672 DCHECK(NumFilters() == 1);
673 return *filters_.begin(); 673 return *filters_.begin();
674 } 674 }
675 675
676 } // namespace content 676 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/webui/web_ui_data_source_impl.cc ('k') | content/common/fileapi/webfilewriter_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698