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

Side by Side Diff: third_party/WebKit/Source/modules/notifications/NotificationResourcesLoader.cpp

Issue 2801083003: Rewrite references to "wtf/" to "platform/wtf/" in modules. (Closed)
Patch Set: Rebase again^3. Will try landing directly. Created 3 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "modules/notifications/NotificationResourcesLoader.h" 5 #include "modules/notifications/NotificationResourcesLoader.h"
6 6
7 #include <cmath>
7 #include "platform/Histogram.h" 8 #include "platform/Histogram.h"
8 #include "platform/weborigin/KURL.h" 9 #include "platform/weborigin/KURL.h"
10 #include "platform/wtf/CurrentTime.h"
11 #include "platform/wtf/Threading.h"
9 #include "public/platform/modules/notifications/WebNotificationData.h" 12 #include "public/platform/modules/notifications/WebNotificationData.h"
10 #include "public/platform/modules/notifications/WebNotificationResources.h" 13 #include "public/platform/modules/notifications/WebNotificationResources.h"
11 #include "wtf/CurrentTime.h"
12 #include "wtf/Threading.h"
13 #include <cmath>
14 14
15 namespace blink { 15 namespace blink {
16 16
17 NotificationResourcesLoader::NotificationResourcesLoader( 17 NotificationResourcesLoader::NotificationResourcesLoader(
18 std::unique_ptr<CompletionCallback> completion_callback) 18 std::unique_ptr<CompletionCallback> completion_callback)
19 : started_(false), 19 : started_(false),
20 completion_callback_(std::move(completion_callback)), 20 completion_callback_(std::move(completion_callback)),
21 pending_request_count_(0) { 21 pending_request_count_(0) {
22 DCHECK(completion_callback_); 22 DCHECK(completion_callback_);
23 } 23 }
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 DCHECK_GT(pending_request_count_, 0); 122 DCHECK_GT(pending_request_count_, 0);
123 pending_request_count_--; 123 pending_request_count_--;
124 if (!pending_request_count_) { 124 if (!pending_request_count_) {
125 Stop(); 125 Stop();
126 (*completion_callback_)(this); 126 (*completion_callback_)(this);
127 // The |this| pointer may have been deleted now. 127 // The |this| pointer may have been deleted now.
128 } 128 }
129 } 129 }
130 130
131 } // namespace blink 131 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698