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

Side by Side Diff: third_party/WebKit/Source/platform/instrumentation/resource_coordinator/FrameResourceCoordinator.cpp

Issue 2710823003: NOCOMMIT prototype: GRC service plumbing and process priority
Patch Set: Rebase Created 3 years, 6 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
« no previous file with comments | « third_party/WebKit/Source/platform/instrumentation/resource_coordinator/FrameResourceCoordinator.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "platform/instrumentation/resource_coordinator/FrameResourceCoordinator .h"
6
7 #include "public/platform/InterfaceProvider.h"
8 #include "public/platform/Platform.h"
9 #include "services/resource_coordinator/public/interfaces/coordination_unit_prov ider.mojom.h"
10
11 namespace blink {
12
13 namespace {
14
15 void onConnectionError() {}
16
17 } // namespace
18
19 FrameResourceCoordinator* FrameResourceCoordinator::Create(
20 InterfaceProvider* interface_provider) {
21 return new FrameResourceCoordinator(interface_provider);
22 }
23
24 FrameResourceCoordinator::FrameResourceCoordinator(
25 InterfaceProvider* interface_provider) {
26 interface_provider->GetInterface(mojo::MakeRequest(&service_));
27
28 service_.set_connection_error_handler(
29 ConvertToBaseCallback(WTF::Bind(&onConnectionError)));
30
31 resource_coordinator::mojom::EventPtr event =
32 resource_coordinator::mojom::Event::New();
33 event->type = resource_coordinator::mojom::EventType::kOnRendererFrameCreated;
34 service_->SendEvent(std::move(event));
35 }
36
37 FrameResourceCoordinator::~FrameResourceCoordinator() = default;
38
39 DEFINE_TRACE(FrameResourceCoordinator) {}
40
41 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/instrumentation/resource_coordinator/FrameResourceCoordinator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698