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

Side by Side Diff: content/browser/appcache/appcache_internals_ui.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, 11 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_INTERNALS_UI_H_ 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_INTERNALS_UI_H_
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_INTERNALS_UI_H_ 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_INTERNALS_UI_H_
7 7
8 #include <stdint.h>
9
8 #include <list> 10 #include <list>
9 11
12 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
12 #include "content/browser/appcache/appcache_group.h" 15 #include "content/browser/appcache/appcache_group.h"
13 #include "content/browser/appcache/appcache_storage.h" 16 #include "content/browser/appcache/appcache_storage.h"
14 #include "content/browser/appcache/chrome_appcache_service.h" 17 #include "content/browser/appcache/chrome_appcache_service.h"
15 #include "content/public/browser/storage_partition.h" 18 #include "content/public/browser/storage_partition.h"
16 #include "content/public/browser/web_contents.h" 19 #include "content/public/browser/web_contents.h"
17 #include "content/public/browser/web_ui_controller.h" 20 #include "content/public/browser/web_ui_controller.h"
18 #include "net/base/io_buffer.h" 21 #include "net/base/io_buffer.h"
19 22
(...skipping 13 matching lines...) Expand all
33 explicit AppCacheInternalsUI(WebUI* web_ui); 36 explicit AppCacheInternalsUI(WebUI* web_ui);
34 ~AppCacheInternalsUI() override; 37 ~AppCacheInternalsUI() override;
35 38
36 class Proxy : public AppCacheStorage::Delegate, 39 class Proxy : public AppCacheStorage::Delegate,
37 public base::RefCountedThreadSafe<Proxy> { 40 public base::RefCountedThreadSafe<Proxy> {
38 public: 41 public:
39 friend class AppCacheInternalsUI; 42 friend class AppCacheInternalsUI;
40 43
41 struct ResponseEnquiry { 44 struct ResponseEnquiry {
42 std::string manifest_url; 45 std::string manifest_url;
43 int64 group_id; 46 int64_t group_id;
44 int64 response_id; 47 int64_t response_id;
45 }; 48 };
46 49
47 private: 50 private:
48 friend class base::RefCountedThreadSafe<Proxy>; 51 friend class base::RefCountedThreadSafe<Proxy>;
49 52
50 Proxy(base::WeakPtr<AppCacheInternalsUI> appcache_internals_ui, 53 Proxy(base::WeakPtr<AppCacheInternalsUI> appcache_internals_ui,
51 const base::FilePath& storage_partition); 54 const base::FilePath& storage_partition);
52 ~Proxy() override; 55 ~Proxy() override;
53 56
54 void RequestAllAppCacheInfo(); 57 void RequestAllAppCacheInfo();
55 void DeleteAppCache(const std::string& manifest_url); 58 void DeleteAppCache(const std::string& manifest_url);
56 void RequestAppCacheDetails(const std::string& manifest_url); 59 void RequestAppCacheDetails(const std::string& manifest_url);
57 void RequestFileDetails(const ResponseEnquiry& response_enquiry); 60 void RequestFileDetails(const ResponseEnquiry& response_enquiry);
58 void HandleFileDetailsRequest(); 61 void HandleFileDetailsRequest();
59 void OnAllAppCacheInfoReady( 62 void OnAllAppCacheInfoReady(
60 scoped_refptr<AppCacheInfoCollection> collection, 63 scoped_refptr<AppCacheInfoCollection> collection,
61 int net_result_code); 64 int net_result_code);
62 void OnAppCacheInfoDeleted(const std::string& manifest_url, 65 void OnAppCacheInfoDeleted(const std::string& manifest_url,
63 int net_result_code); 66 int net_result_code);
64 void OnGroupLoaded(AppCacheGroup* appcache_group, 67 void OnGroupLoaded(AppCacheGroup* appcache_group,
65 const GURL& manifest_gurl) override; 68 const GURL& manifest_gurl) override;
66 void OnResponseInfoLoaded(AppCacheResponseInfo* response_info, 69 void OnResponseInfoLoaded(AppCacheResponseInfo* response_info,
67 int64 response_id) override; 70 int64_t response_id) override;
68 void OnResponseDataReadComplete( 71 void OnResponseDataReadComplete(
69 const ResponseEnquiry& response_enquiry, 72 const ResponseEnquiry& response_enquiry,
70 scoped_refptr<AppCacheResponseInfo> response_info, 73 scoped_refptr<AppCacheResponseInfo> response_info,
71 scoped_ptr<AppCacheResponseReader> reader, 74 scoped_ptr<AppCacheResponseReader> reader,
72 scoped_refptr<net::IOBuffer> response_data, 75 scoped_refptr<net::IOBuffer> response_data,
73 int net_result_code); 76 int net_result_code);
74 void Initialize( 77 void Initialize(
75 const scoped_refptr<ChromeAppCacheService>& chrome_appcache_service); 78 const scoped_refptr<ChromeAppCacheService>& chrome_appcache_service);
76 void Shutdown(); 79 void Shutdown();
77 80
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 123
121 Proxy* GetProxyForPartitionPath(const base::FilePath& path); 124 Proxy* GetProxyForPartitionPath(const base::FilePath& path);
122 std::list<scoped_refptr<Proxy>> appcache_proxies_; 125 std::list<scoped_refptr<Proxy>> appcache_proxies_;
123 base::WeakPtrFactory<AppCacheInternalsUI> weak_ptr_factory_; 126 base::WeakPtrFactory<AppCacheInternalsUI> weak_ptr_factory_;
124 127
125 DISALLOW_COPY_AND_ASSIGN(AppCacheInternalsUI); 128 DISALLOW_COPY_AND_ASSIGN(AppCacheInternalsUI);
126 }; 129 };
127 130
128 } // namespace content 131 } // namespace content
129 #endif 132 #endif
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_interceptor.cc ('k') | content/browser/appcache/appcache_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698