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

Side by Side Diff: content/browser/appcache/appcache_service_impl.h

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 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
OLDNEW
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 CONTENT_BROWSER_APPCACHE_APPCACHE_SERVICE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_SERVICE_IMPL_H_
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_SERVICE_IMPL_H_ 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_SERVICE_IMPL_H_
7 7
8 #include <stdint.h>
9
8 #include <map> 10 #include <map>
9 #include <set> 11 #include <set>
10 12
11 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
14 #include "base/observer_list.h" 17 #include "base/observer_list.h"
15 #include "base/time/time.h" 18 #include "base/time/time.h"
16 #include "base/timer/timer.h" 19 #include "base/timer/timer.h"
17 #include "content/common/appcache_interfaces.h" 20 #include "content/common/appcache_interfaces.h"
18 #include "content/common/content_export.h" 21 #include "content/common/content_export.h"
19 #include "content/public/browser/appcache_service.h" 22 #include "content/public/browser/appcache_service.h"
20 #include "net/base/completion_callback.h" 23 #include "net/base/completion_callback.h"
21 #include "net/base/net_errors.h" 24 #include "net/base/net_errors.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 const net::CompletionCallback& callback) override; 108 const net::CompletionCallback& callback) override;
106 109
107 // Deletes all appcaches for the origin, 'callback' is invoked upon 110 // Deletes all appcaches for the origin, 'callback' is invoked upon
108 // completion. This method always completes asynchronously. 111 // completion. This method always completes asynchronously.
109 // (virtual for unit testing) 112 // (virtual for unit testing)
110 virtual void DeleteAppCachesForOrigin( 113 virtual void DeleteAppCachesForOrigin(
111 const GURL& origin, const net::CompletionCallback& callback); 114 const GURL& origin, const net::CompletionCallback& callback);
112 115
113 // Checks the integrity of 'response_id' by reading the headers and data. 116 // Checks the integrity of 'response_id' by reading the headers and data.
114 // If it cannot be read, the cache group for 'manifest_url' is deleted. 117 // If it cannot be read, the cache group for 'manifest_url' is deleted.
115 void CheckAppCacheResponse(const GURL& manifest_url, int64 cache_id, 118 void CheckAppCacheResponse(const GURL& manifest_url,
116 int64 response_id); 119 int64_t cache_id,
120 int64_t response_id);
117 121
118 // Context for use during cache updates, should only be accessed 122 // Context for use during cache updates, should only be accessed
119 // on the IO thread. We do NOT add a reference to the request context, 123 // on the IO thread. We do NOT add a reference to the request context,
120 // it is the callers responsibility to ensure that the pointer 124 // it is the callers responsibility to ensure that the pointer
121 // remains valid while set. 125 // remains valid while set.
122 net::URLRequestContext* request_context() const { return request_context_; } 126 net::URLRequestContext* request_context() const { return request_context_; }
123 void set_request_context(net::URLRequestContext* context) { 127 void set_request_context(net::URLRequestContext* context) {
124 request_context_ = context; 128 request_context_ = context;
125 } 129 }
126 130
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 219
216 private: 220 private:
217 base::WeakPtrFactory<AppCacheServiceImpl> weak_factory_; 221 base::WeakPtrFactory<AppCacheServiceImpl> weak_factory_;
218 222
219 DISALLOW_COPY_AND_ASSIGN(AppCacheServiceImpl); 223 DISALLOW_COPY_AND_ASSIGN(AppCacheServiceImpl);
220 }; 224 };
221 225
222 } // namespace content 226 } // namespace content
223 227
224 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_SERVICE_IMPL_H_ 228 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_response_unittest.cc ('k') | content/browser/appcache/appcache_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698