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

Side by Side Diff: content/child/service_worker/service_worker_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_HANDLE_REFERENCE_H_ 5 #ifndef CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_HANDLE_REFERENCE_H_
6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_HANDLE_REFERENCE_H_ 6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_HANDLE_REFERENCE_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/content_export.h" 13 #include "content/common/content_export.h"
11 #include "content/common/service_worker/service_worker_types.h" 14 #include "content/common/service_worker/service_worker_types.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 ServiceWorkerHandle managed in the 20 // Represents an interprocess reference to ServiceWorkerHandle managed in the
(...skipping 12 matching lines...) Expand all
30 static scoped_ptr<ServiceWorkerHandleReference> Adopt( 33 static scoped_ptr<ServiceWorkerHandleReference> Adopt(
31 const ServiceWorkerObjectInfo& info, 34 const ServiceWorkerObjectInfo& info,
32 ThreadSafeSender* sender); 35 ThreadSafeSender* sender);
33 36
34 ~ServiceWorkerHandleReference(); 37 ~ServiceWorkerHandleReference();
35 38
36 const ServiceWorkerObjectInfo& info() const { return info_; } 39 const ServiceWorkerObjectInfo& info() const { return info_; }
37 int handle_id() const { return info_.handle_id; } 40 int handle_id() const { return info_.handle_id; }
38 const GURL& url() const { return info_.url; } 41 const GURL& url() const { return info_.url; }
39 blink::WebServiceWorkerState state() const { return info_.state; } 42 blink::WebServiceWorkerState state() const { return info_.state; }
40 int64 version_id() const { return info_.version_id; } 43 int64_t version_id() const { return info_.version_id; }
41 44
42 private: 45 private:
43 ServiceWorkerHandleReference(const ServiceWorkerObjectInfo& info, 46 ServiceWorkerHandleReference(const ServiceWorkerObjectInfo& info,
44 ThreadSafeSender* sender, 47 ThreadSafeSender* sender,
45 bool increment_ref_in_ctor); 48 bool increment_ref_in_ctor);
46 ServiceWorkerObjectInfo info_; 49 ServiceWorkerObjectInfo info_;
47 scoped_refptr<ThreadSafeSender> sender_; 50 scoped_refptr<ThreadSafeSender> sender_;
48 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerHandleReference); 51 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerHandleReference);
49 }; 52 };
50 53
51 } // namespace content 54 } // namespace content
52 55
53 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_HANDLE_REFERENCE_H_ 56 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_HANDLE_REFERENCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698