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

Side by Side Diff: third_party/WebKit/Source/modules/permissions/Permissions.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 #include "modules/permissions/Permissions.h" 5 #include "modules/permissions/Permissions.h"
6 6
7 #include <memory>
7 #include "bindings/core/v8/Dictionary.h" 8 #include "bindings/core/v8/Dictionary.h"
8 #include "bindings/core/v8/Nullable.h" 9 #include "bindings/core/v8/Nullable.h"
9 #include "bindings/core/v8/ScriptPromise.h" 10 #include "bindings/core/v8/ScriptPromise.h"
10 #include "bindings/core/v8/ScriptPromiseResolver.h" 11 #include "bindings/core/v8/ScriptPromiseResolver.h"
11 #include "bindings/modules/v8/V8MidiPermissionDescriptor.h" 12 #include "bindings/modules/v8/V8MidiPermissionDescriptor.h"
12 #include "bindings/modules/v8/V8PermissionDescriptor.h" 13 #include "bindings/modules/v8/V8PermissionDescriptor.h"
13 #include "bindings/modules/v8/V8PushPermissionDescriptor.h" 14 #include "bindings/modules/v8/V8PushPermissionDescriptor.h"
14 #include "core/dom/DOMException.h" 15 #include "core/dom/DOMException.h"
15 #include "core/dom/Document.h" 16 #include "core/dom/Document.h"
16 #include "core/dom/ExceptionCode.h" 17 #include "core/dom/ExceptionCode.h"
17 #include "core/frame/LocalFrame.h" 18 #include "core/frame/LocalFrame.h"
18 #include "modules/permissions/PermissionDescriptor.h" 19 #include "modules/permissions/PermissionDescriptor.h"
19 #include "modules/permissions/PermissionStatus.h" 20 #include "modules/permissions/PermissionStatus.h"
20 #include "modules/permissions/PermissionUtils.h" 21 #include "modules/permissions/PermissionUtils.h"
21 #include "platform/UserGestureIndicator.h" 22 #include "platform/UserGestureIndicator.h"
22 #include "public/platform/Platform.h" 23 #include "public/platform/Platform.h"
23 #include "wtf/Functional.h" 24 #include "wtf/Functional.h"
24 #include "wtf/NotFound.h" 25 #include "wtf/NotFound.h"
25 #include "wtf/PtrUtil.h" 26 #include "wtf/PtrUtil.h"
26 #include "wtf/Vector.h" 27 #include "wtf/Vector.h"
27 #include <memory>
28 28
29 namespace blink { 29 namespace blink {
30 30
31 using mojom::blink::PermissionDescriptorPtr; 31 using mojom::blink::PermissionDescriptorPtr;
32 using mojom::blink::PermissionName; 32 using mojom::blink::PermissionName;
33 using mojom::blink::PermissionService; 33 using mojom::blink::PermissionService;
34 34
35 namespace { 35 namespace {
36 36
37 // Parses the raw permission dictionary and returns the Mojo 37 // Parses the raw permission dictionary and returns the Mojo
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 result.reserveInitialCapacity(callerIndexToInternalIndex.size()); 294 result.reserveInitialCapacity(callerIndexToInternalIndex.size());
295 for (int internalIndex : callerIndexToInternalIndex) { 295 for (int internalIndex : callerIndexToInternalIndex) {
296 result.push_back(PermissionStatus::createAndListen( 296 result.push_back(PermissionStatus::createAndListen(
297 resolver->getExecutionContext(), results[internalIndex], 297 resolver->getExecutionContext(), results[internalIndex],
298 descriptors[internalIndex]->Clone())); 298 descriptors[internalIndex]->Clone()));
299 } 299 }
300 resolver->resolve(result); 300 resolver->resolve(result);
301 } 301 }
302 302
303 } // namespace blink 303 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698