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

Side by Side Diff: third_party/WebKit/Source/modules/app_banner/AppBannerController.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/app_banner/AppBannerController.h" 5 #include "modules/app_banner/AppBannerController.h"
6 6
7 #include <memory>
8 #include <utility>
7 #include "core/EventTypeNames.h" 9 #include "core/EventTypeNames.h"
8 #include "core/dom/Document.h" 10 #include "core/dom/Document.h"
9 #include "core/frame/DOMWindow.h" 11 #include "core/frame/DOMWindow.h"
10 #include "core/frame/LocalFrame.h" 12 #include "core/frame/LocalFrame.h"
11 #include "modules/app_banner/BeforeInstallPromptEvent.h" 13 #include "modules/app_banner/BeforeInstallPromptEvent.h"
12 #include "mojo/public/cpp/bindings/strong_binding.h" 14 #include "mojo/public/cpp/bindings/strong_binding.h"
13 #include "platform/weborigin/KURL.h" 15 #include "platform/weborigin/KURL.h"
14 #include "platform/weborigin/Referrer.h" 16 #include "platform/weborigin/Referrer.h"
15 #include "platform/weborigin/SecurityPolicy.h" 17 #include "platform/weborigin/SecurityPolicy.h"
16 #include "wtf/PtrUtil.h" 18 #include "wtf/PtrUtil.h"
17 #include "wtf/text/AtomicString.h" 19 #include "wtf/text/AtomicString.h"
18 #include <memory>
19 #include <utility>
20 20
21 namespace blink { 21 namespace blink {
22 22
23 AppBannerController::AppBannerController(LocalFrame& frame) : m_frame(frame) {} 23 AppBannerController::AppBannerController(LocalFrame& frame) : m_frame(frame) {}
24 24
25 void AppBannerController::bindMojoRequest( 25 void AppBannerController::bindMojoRequest(
26 LocalFrame* frame, 26 LocalFrame* frame,
27 mojom::blink::AppBannerControllerRequest request) { 27 mojom::blink::AppBannerControllerRequest request) {
28 DCHECK(frame); 28 DCHECK(frame);
29 29
(...skipping 21 matching lines...) Expand all
51 51
52 AtomicString referrer = SecurityPolicy::generateReferrer( 52 AtomicString referrer = SecurityPolicy::generateReferrer(
53 m_frame->document()->getReferrerPolicy(), KURL(), 53 m_frame->document()->getReferrerPolicy(), KURL(),
54 m_frame->document()->outgoingReferrer()) 54 m_frame->document()->outgoingReferrer())
55 .referrer; 55 .referrer;
56 56
57 callback.Run(reply, referrer.isNull() ? emptyString : referrer); 57 callback.Run(reply, referrer.isNull() ? emptyString : referrer);
58 } 58 }
59 59
60 } // namespace blink 60 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698