Chromium Code Reviews

Side by Side Diff: content/browser/net/cookie_store_map_impl.h

Issue 12546016: Remove the Extensions URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: most unittests pass Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 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_NET_COOKIE_STORE_MAP_IMPL_H_
6 #define CONTENT_BROWSER_NET_COOKIE_STORE_MAP_IMPL_H_
7
8 #include <map>
9
10 #include "base/compiler_specific.h"
11 #include "base/memory/ref_counted.h"
12 #include "content/public/browser/cookie_store_map.h"
13
14 namespace content {
15
16 class CookieStoreMapImpl : public CookieStoreMap {
17 public:
18 CookieStoreMapImpl();
19 virtual ~CookieStoreMapImpl();
20
21 // CookieStoreMap overrides:
22 virtual net::CookieStore* GetForScheme(
23 const std::string& scheme) const OVERRIDE;
24 virtual void SetForScheme(const std::string& scheme,
25 net::CookieStore* cookie_store) OVERRIDE;
26 virtual CookieStoreMap* Clone() const OVERRIDE;
27
28 private:
29 typedef std::map<std::string, scoped_refptr<net::CookieStore> > MapType;
30 MapType scheme_map_;
31
32 DISALLOW_COPY_AND_ASSIGN(CookieStoreMapImpl);
33 };
34
35 } // namespace content
36
37 #endif // CONTENT_BROWSER_NET_COOKIE_STORE_MAP_IMPL_H_
OLDNEW

Powered by Google App Engine