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

Side by Side Diff: chrome/browser/ui/webui/engagement/site_engagement_ui.cc

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month 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 "chrome/browser/ui/webui/engagement/site_engagement_ui.h" 5 #include "chrome/browser/ui/webui/engagement/site_engagement_ui.h"
6 6
7 #include "chrome/browser/engagement/site_engagement_service.h" 7 #include "chrome/browser/engagement/site_engagement_service.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/common/url_constants.h" 9 #include "chrome/common/url_constants.h"
10 #include "content/public/browser/web_ui.h" 10 #include "content/public/browser/web_ui.h"
11 #include "content/public/browser/web_ui_controller.h" 11 #include "content/public/browser/web_ui_controller.h"
12 #include "content/public/browser/web_ui_data_source.h" 12 #include "content/public/browser/web_ui_data_source.h"
13 #include "grit/browser_resources.h" 13 #include "grit/browser_resources.h"
14 #include "mojo/common/url_type_converters.h" 14 #include "mojo/common/url_type_converters.h"
15 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h" 15 #include "mojo/public/cpp/bindings/strong_binding.h"
16 16
17 namespace { 17 namespace {
18 18
19 // Implementation of SiteEngagementUIHandler that gets information from the 19 // Implementation of SiteEngagementUIHandler that gets information from the
20 // SiteEngagementService to provide data for the WebUI. 20 // SiteEngagementService to provide data for the WebUI.
21 class SiteEngagementUIHandlerImpl : public SiteEngagementUIHandler { 21 class SiteEngagementUIHandlerImpl : public SiteEngagementUIHandler {
22 public: 22 public:
23 // SiteEngagementUIHandlerImpl is deleted when the supplied pipe is destroyed. 23 // SiteEngagementUIHandlerImpl is deleted when the supplied pipe is destroyed.
24 SiteEngagementUIHandlerImpl( 24 SiteEngagementUIHandlerImpl(
25 Profile* profile, 25 Profile* profile,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 IDR_SITE_ENGAGEMENT_MOJO_JS); 79 IDR_SITE_ENGAGEMENT_MOJO_JS);
80 } 80 }
81 81
82 SiteEngagementUI::~SiteEngagementUI() {} 82 SiteEngagementUI::~SiteEngagementUI() {}
83 83
84 void SiteEngagementUI::BindUIHandler( 84 void SiteEngagementUI::BindUIHandler(
85 mojo::InterfaceRequest<SiteEngagementUIHandler> request) { 85 mojo::InterfaceRequest<SiteEngagementUIHandler> request) {
86 // SiteEngagementUIHandlerImpl deletes itself when the pipe is closed. 86 // SiteEngagementUIHandlerImpl deletes itself when the pipe is closed.
87 new SiteEngagementUIHandlerImpl(Profile::FromWebUI(web_ui()), request.Pass()); 87 new SiteEngagementUIHandlerImpl(Profile::FromWebUI(web_ui()), request.Pass());
88 } 88 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/engagement/BUILD.gn ('k') | chrome/browser/ui/webui/mojo_web_ui_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698