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

Side by Side Diff: content/browser/mock_resource_context.h

Issue 6825038: Create a content::ResourceContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test. Created 9 years, 8 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
« no previous file with comments | « content/browser/browser_child_process_host.cc ('k') | content/browser/mock_resource_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_MOCK_RESOURCE_CONTEXT_H_
6 #define CONTENT_BROWSER_MOCK_RESOURCE_CONTEXT_H_
7
8 #include "content/browser/resource_context.h"
9
10 namespace base {
11 template <typename T>
12 struct DefaultLazyInstanceTraits;
13 } // namespace base
14
15 namespace content {
16
17 class MockResourceContext : public ResourceContext {
18 public:
19 static const ResourceContext& GetInstance();
20
21 private:
22 friend struct base::DefaultLazyInstanceTraits<MockResourceContext>;
23
24 MockResourceContext();
25 ~MockResourceContext();
26 virtual void EnsureInitialized() const;
27 };
28
29 } // namespace content
30
31 #endif // CONTENT_BROWSER_MOCK_RESOURCE_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/browser/browser_child_process_host.cc ('k') | content/browser/mock_resource_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698