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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/mock_resource_context.h
diff --git a/content/browser/mock_resource_context.h b/content/browser/mock_resource_context.h
new file mode 100644
index 0000000000000000000000000000000000000000..861a1dcdc004f6b79620c33fe655f6ccad30100c
--- /dev/null
+++ b/content/browser/mock_resource_context.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_MOCK_RESOURCE_CONTEXT_H_
+#define CONTENT_BROWSER_MOCK_RESOURCE_CONTEXT_H_
+
+#include "content/browser/resource_context.h"
+
+namespace base {
+template <typename T>
+struct DefaultLazyInstanceTraits;
+} // namespace base
+
+namespace content {
+
+class MockResourceContext : public ResourceContext {
+ public:
+ static const ResourceContext& GetInstance();
+
+ private:
+ friend struct base::DefaultLazyInstanceTraits<MockResourceContext>;
+
+ MockResourceContext();
+ ~MockResourceContext();
+ virtual void EnsureInitialized() const;
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_MOCK_RESOURCE_CONTEXT_H_
« 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