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

Side by Side Diff: content/browser/loader/resource_message_filter.h

Issue 16294003: Update content/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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 #ifndef CONTENT_BROWSER_LOADER_RESOURCE_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_BROWSER_LOADER_RESOURCE_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_LOADER_RESOURCE_MESSAGE_FILTER_H_ 6 #define CONTENT_BROWSER_LOADER_RESOURCE_MESSAGE_FILTER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/browser/browser_message_filter.h" 10 #include "content/public/browser/browser_message_filter.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // BrowserMessageFilter implementation. 56 // BrowserMessageFilter implementation.
57 virtual void OnChannelClosing() OVERRIDE; 57 virtual void OnChannelClosing() OVERRIDE;
58 virtual bool OnMessageReceived(const IPC::Message& message, 58 virtual bool OnMessageReceived(const IPC::Message& message,
59 bool* message_was_ok) OVERRIDE; 59 bool* message_was_ok) OVERRIDE;
60 60
61 ResourceContext* resource_context() const { 61 ResourceContext* resource_context() const {
62 return resource_context_; 62 return resource_context_;
63 } 63 }
64 64
65 ChromeAppCacheService* appcache_service() const { 65 ChromeAppCacheService* appcache_service() const {
66 return appcache_service_; 66 return appcache_service_.get();
67 } 67 }
68 68
69 ChromeBlobStorageContext* blob_storage_context() const { 69 ChromeBlobStorageContext* blob_storage_context() const {
70 return blob_storage_context_; 70 return blob_storage_context_.get();
71 } 71 }
72 72
73 fileapi::FileSystemContext* file_system_context() const { 73 fileapi::FileSystemContext* file_system_context() const {
74 return file_system_context_; 74 return file_system_context_.get();
75 } 75 }
76 76
77 // Returns the net::URLRequestContext for the given request. 77 // Returns the net::URLRequestContext for the given request.
78 net::URLRequestContext* GetURLRequestContext( 78 net::URLRequestContext* GetURLRequestContext(
79 ResourceType::Type request_type); 79 ResourceType::Type request_type);
80 80
81 int child_id() const { return child_id_; } 81 int child_id() const { return child_id_; }
82 int process_type() const { return process_type_; } 82 int process_type() const { return process_type_; }
83 83
84 protected: 84 protected:
(...skipping 14 matching lines...) Expand all
99 scoped_refptr<fileapi::FileSystemContext> file_system_context_; 99 scoped_refptr<fileapi::FileSystemContext> file_system_context_;
100 100
101 const scoped_ptr<URLRequestContextSelector> url_request_context_selector_; 101 const scoped_ptr<URLRequestContextSelector> url_request_context_selector_;
102 102
103 DISALLOW_IMPLICIT_CONSTRUCTORS(ResourceMessageFilter); 103 DISALLOW_IMPLICIT_CONSTRUCTORS(ResourceMessageFilter);
104 }; 104 };
105 105
106 } // namespace content 106 } // namespace content
107 107
108 #endif // CONTENT_BROWSER_LOADER_RESOURCE_MESSAGE_FILTER_H_ 108 #endif // CONTENT_BROWSER_LOADER_RESOURCE_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « content/browser/loader/resource_loader.cc ('k') | content/browser/loader/stream_resource_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698