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

Side by Side Diff: content/child/service_worker/service_worker_network_provider.h

Issue 1544273002: Switch to standard integer types in content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_ 5 #ifndef CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_
6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_ 6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_
7 7
8 #include <stdint.h>
9
8 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
11 #include "base/supports_user_data.h" 14 #include "base/supports_user_data.h"
12 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
13 #include "content/common/service_worker/service_worker_types.h" 16 #include "content/common/service_worker/service_worker_types.h"
14 #include "third_party/WebKit/public/web/WebSandboxFlags.h" 17 #include "third_party/WebKit/public/web/WebSandboxFlags.h"
15 18
16 namespace content { 19 namespace content {
17 20
18 class ServiceWorkerProviderContext; 21 class ServiceWorkerProviderContext;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 ServiceWorkerNetworkProvider(int route_id, ServiceWorkerProviderType type); 56 ServiceWorkerNetworkProvider(int route_id, ServiceWorkerProviderType type);
54 ServiceWorkerNetworkProvider(); 57 ServiceWorkerNetworkProvider();
55 ~ServiceWorkerNetworkProvider() override; 58 ~ServiceWorkerNetworkProvider() override;
56 59
57 int provider_id() const { return provider_id_; } 60 int provider_id() const { return provider_id_; }
58 ServiceWorkerProviderContext* context() const { return context_.get(); } 61 ServiceWorkerProviderContext* context() const { return context_.get(); }
59 62
60 // This method is called for a provider that's associated with a 63 // This method is called for a provider that's associated with a
61 // running service worker script. The version_id indicates which 64 // running service worker script. The version_id indicates which
62 // ServiceWorkerVersion should be used. 65 // ServiceWorkerVersion should be used.
63 void SetServiceWorkerVersionId(int64 version_id); 66 void SetServiceWorkerVersionId(int64_t version_id);
64 67
65 bool IsControlledByServiceWorker() const; 68 bool IsControlledByServiceWorker() const;
66 69
67 private: 70 private:
68 const int provider_id_; 71 const int provider_id_;
69 scoped_refptr<ServiceWorkerProviderContext> context_; 72 scoped_refptr<ServiceWorkerProviderContext> context_;
70 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerNetworkProvider); 73 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerNetworkProvider);
71 }; 74 };
72 75
73 } // namespace content 76 } // namespace content
74 77
75 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_ 78 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_NETWORK_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698