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

Side by Side Diff: content/shell/shell_resource_context.h

Issue 11308362: Add StoragePartition's ProtocolHandlers at URLRequestContext construction time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync (r175140) Created 7 years, 11 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_SHELL_SHELL_RESOURCE_CONTEXT_H_
6 #define CONTENT_SHELL_SHELL_RESOURCE_CONTEXT_H_
7
8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h"
10 #include "content/public/browser/resource_context.h"
11
12 namespace content {
13
14 class ShellURLRequestContextGetter;
15
16 class ShellResourceContext : public ResourceContext {
17 public:
18 explicit ShellResourceContext(ShellURLRequestContextGetter* getter);
19 virtual ~ShellResourceContext();
20
21 private:
22 // ResourceContext implementation:
23 virtual net::HostResolver* GetHostResolver() OVERRIDE;
24 virtual net::URLRequestContext* GetRequestContext() OVERRIDE;
25
26 scoped_refptr<ShellURLRequestContextGetter> getter_;
27
28 DISALLOW_COPY_AND_ASSIGN(ShellResourceContext);
29 };
30
31 } // namespace content
32
33 #endif // CONTENT_SHELL_SHELL_RESOURCE_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698