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

Side by Side Diff: content/child/service_worker/service_worker_registration_handle_reference.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_REGISTRATION_HANDLE_REFERENC E_H_ 5 #ifndef CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_REGISTRATION_HANDLE_REFERENC E_H_
6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_REGISTRATION_HANDLE_REFERENC E_H_ 6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_REGISTRATION_HANDLE_REFERENC E_H_
7 7
8 #include <stdint.h>
9
10 #include "base/macros.h"
8 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
10 #include "content/common/service_worker/service_worker_types.h" 13 #include "content/common/service_worker/service_worker_types.h"
11 #include "url/gurl.h" 14 #include "url/gurl.h"
12 15
13 namespace content { 16 namespace content {
14 17
15 class ThreadSafeSender; 18 class ThreadSafeSender;
16 19
17 // Represents an interprocess reference to ServiceWorkerRegistrationHandle 20 // Represents an interprocess reference to ServiceWorkerRegistrationHandle
(...skipping 12 matching lines...) Expand all
30 // ref-count. 33 // ref-count.
31 static scoped_ptr<ServiceWorkerRegistrationHandleReference> Adopt( 34 static scoped_ptr<ServiceWorkerRegistrationHandleReference> Adopt(
32 const ServiceWorkerRegistrationObjectInfo& info, 35 const ServiceWorkerRegistrationObjectInfo& info,
33 ThreadSafeSender* sender); 36 ThreadSafeSender* sender);
34 37
35 ~ServiceWorkerRegistrationHandleReference(); 38 ~ServiceWorkerRegistrationHandleReference();
36 39
37 const ServiceWorkerRegistrationObjectInfo& info() const { return info_; } 40 const ServiceWorkerRegistrationObjectInfo& info() const { return info_; }
38 int handle_id() const { return info_.handle_id; } 41 int handle_id() const { return info_.handle_id; }
39 GURL scope() const { return info_.scope; } 42 GURL scope() const { return info_.scope; }
40 int64 registration_id() const { return info_.registration_id; } 43 int64_t registration_id() const { return info_.registration_id; }
41 44
42 private: 45 private:
43 ServiceWorkerRegistrationHandleReference( 46 ServiceWorkerRegistrationHandleReference(
44 const ServiceWorkerRegistrationObjectInfo& info, 47 const ServiceWorkerRegistrationObjectInfo& info,
45 ThreadSafeSender* sender, 48 ThreadSafeSender* sender,
46 bool increment_ref_in_ctor); 49 bool increment_ref_in_ctor);
47 50
48 ServiceWorkerRegistrationObjectInfo info_; 51 ServiceWorkerRegistrationObjectInfo info_;
49 scoped_refptr<ThreadSafeSender> sender_; 52 scoped_refptr<ThreadSafeSender> sender_;
50 53
51 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegistrationHandleReference); 54 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRegistrationHandleReference);
52 }; 55 };
53 56
54 } // namespace content 57 } // namespace content
55 58
56 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_REGISTRATION_HANDLE_REFER ENCE_H_ 59 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_REGISTRATION_HANDLE_REFER ENCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698