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

Side by Side Diff: net/base/cookie_store_test_helpers.h

Issue 8568021: Add OVERRIDE to net/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: net only Created 9 years, 1 month 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 | « net/base/cookie_monster_store_test.h ('k') | net/base/dnsrr_resolver.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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 NET_BASE_COOKIE_STORE_TEST_HELPERS_H_ 5 #ifndef NET_BASE_COOKIE_STORE_TEST_HELPERS_H_
6 #define NET_BASE_COOKIE_STORE_TEST_HELPERS_H_ 6 #define NET_BASE_COOKIE_STORE_TEST_HELPERS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "net/base/cookie_monster.h" 9 #include "net/base/cookie_monster.h"
10 10
(...skipping 10 matching lines...) Expand all
21 DelayedCookieMonster(); 21 DelayedCookieMonster();
22 22
23 // Call the asynchronous CookieMonster function, expect it to immediately 23 // Call the asynchronous CookieMonster function, expect it to immediately
24 // invoke the internal callback. 24 // invoke the internal callback.
25 // Post a delayed task to invoke the original callback with the results. 25 // Post a delayed task to invoke the original callback with the results.
26 26
27 virtual void SetCookieWithOptionsAsync( 27 virtual void SetCookieWithOptionsAsync(
28 const GURL& url, 28 const GURL& url,
29 const std::string& cookie_line, 29 const std::string& cookie_line,
30 const CookieOptions& options, 30 const CookieOptions& options,
31 const CookieMonster::SetCookiesCallback& callback); 31 const CookieMonster::SetCookiesCallback& callback) OVERRIDE;
32 32
33 virtual void GetCookiesWithOptionsAsync( 33 virtual void GetCookiesWithOptionsAsync(
34 const GURL& url, const CookieOptions& options, 34 const GURL& url, const CookieOptions& options,
35 const CookieMonster::GetCookiesCallback& callback); 35 const CookieMonster::GetCookiesCallback& callback) OVERRIDE;
36 36
37 virtual void GetCookiesWithInfoAsync( 37 virtual void GetCookiesWithInfoAsync(
38 const GURL& url, 38 const GURL& url,
39 const CookieOptions& options, 39 const CookieOptions& options,
40 const CookieMonster::GetCookieInfoCallback& callback); 40 const CookieMonster::GetCookieInfoCallback& callback) OVERRIDE;
41 41
42 virtual bool SetCookieWithOptions(const GURL& url, 42 virtual bool SetCookieWithOptions(const GURL& url,
43 const std::string& cookie_line, 43 const std::string& cookie_line,
44 const CookieOptions& options); 44 const CookieOptions& options);
45 45
46 virtual std::string GetCookiesWithOptions(const GURL& url, 46 virtual std::string GetCookiesWithOptions(const GURL& url,
47 const CookieOptions& options); 47 const CookieOptions& options);
48 48
49 virtual void GetCookiesWithInfo(const GURL& url, 49 virtual void GetCookiesWithInfo(const GURL& url,
50 const CookieOptions& options, 50 const CookieOptions& options,
51 std::string* cookie_line, 51 std::string* cookie_line,
52 std::vector<CookieInfo>* cookie_infos); 52 std::vector<CookieInfo>* cookie_infos);
53 53
54 virtual void DeleteCookie(const GURL& url, 54 virtual void DeleteCookie(const GURL& url,
55 const std::string& cookie_name); 55 const std::string& cookie_name);
56 56
57 virtual void DeleteCookieAsync(const GURL& url, 57 virtual void DeleteCookieAsync(const GURL& url,
58 const std::string& cookie_name, 58 const std::string& cookie_name,
59 const base::Closure& callback); 59 const base::Closure& callback) OVERRIDE;
60 60
61 virtual CookieMonster* GetCookieMonster(); 61 virtual CookieMonster* GetCookieMonster() OVERRIDE;
62 62
63 private: 63 private:
64 64
65 // Be called immediately from CookieMonster. 65 // Be called immediately from CookieMonster.
66 66
67 void GetCookiesInternalCallback( 67 void GetCookiesInternalCallback(
68 const std::string& cookie_line, 68 const std::string& cookie_line,
69 const std::vector<CookieStore::CookieInfo>& cookie_info); 69 const std::vector<CookieStore::CookieInfo>& cookie_info);
70 70
71 void SetCookiesInternalCallback(bool result); 71 void SetCookiesInternalCallback(bool result);
(...skipping 19 matching lines...) Expand all
91 bool did_run_; 91 bool did_run_;
92 bool result_; 92 bool result_;
93 std::string cookie_; 93 std::string cookie_;
94 std::string cookie_line_; 94 std::string cookie_line_;
95 std::vector<CookieStore::CookieInfo> cookie_info_; 95 std::vector<CookieStore::CookieInfo> cookie_info_;
96 }; 96 };
97 97
98 } // namespace net 98 } // namespace net
99 99
100 #endif // NET_BASE_COOKIE_STORE_TEST_HELPERS_H_ 100 #endif // NET_BASE_COOKIE_STORE_TEST_HELPERS_H_
OLDNEW
« no previous file with comments | « net/base/cookie_monster_store_test.h ('k') | net/base/dnsrr_resolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698