| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_CHANNEL_ID_HELPER_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_CHANNEL_ID_HELPER_H_ |
| 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_CHANNEL_ID_HELPER_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_CHANNEL_ID_HELPER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 // Clears the list of canned channel IDs. | 61 // Clears the list of canned channel IDs. |
| 62 void Reset(); | 62 void Reset(); |
| 63 | 63 |
| 64 // True if no ChannelIDs are currently stored. | 64 // True if no ChannelIDs are currently stored. |
| 65 bool empty() const; | 65 bool empty() const; |
| 66 | 66 |
| 67 // Returns the current number of channel IDs. | 67 // Returns the current number of channel IDs. |
| 68 size_t GetChannelIDCount() const; | 68 size_t GetChannelIDCount() const; |
| 69 | 69 |
| 70 // BrowsingDataChannelIDHelper methods. | 70 // BrowsingDataChannelIDHelper methods. |
| 71 virtual void StartFetching(const FetchResultCallback& callback) OVERRIDE; | 71 virtual void StartFetching(const FetchResultCallback& callback) override; |
| 72 virtual void DeleteChannelID(const std::string& server_id) OVERRIDE; | 72 virtual void DeleteChannelID(const std::string& server_id) override; |
| 73 | 73 |
| 74 private: | 74 private: |
| 75 virtual ~CannedBrowsingDataChannelIDHelper(); | 75 virtual ~CannedBrowsingDataChannelIDHelper(); |
| 76 | 76 |
| 77 void FinishFetching(); | 77 void FinishFetching(); |
| 78 | 78 |
| 79 typedef std::map<std::string, net::ChannelIDStore::ChannelID> | 79 typedef std::map<std::string, net::ChannelIDStore::ChannelID> |
| 80 ChannelIDMap; | 80 ChannelIDMap; |
| 81 ChannelIDMap channel_id_map_; | 81 ChannelIDMap channel_id_map_; |
| 82 | 82 |
| 83 FetchResultCallback completion_callback_; | 83 FetchResultCallback completion_callback_; |
| 84 | 84 |
| 85 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataChannelIDHelper); | 85 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataChannelIDHelper); |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_CHANNEL_ID_HELPER_H_ | 88 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_CHANNEL_ID_HELPER_H_ |
| OLD | NEW |