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

Side by Side Diff: services/test_service/test_request_tracker_impl.h

Issue 1983473002: ApplicationConnection devolution, part 3.1. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 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 #ifndef SERVICES_TEST_SERVICE_TEST_REQUEST_TRACKER_IMPL_H_ 5 #ifndef SERVICES_TEST_SERVICE_TEST_REQUEST_TRACKER_IMPL_H_
6 #define SERVICES_TEST_SERVICE_TEST_REQUEST_TRACKER_IMPL_H_ 6 #define SERVICES_TEST_SERVICE_TEST_REQUEST_TRACKER_IMPL_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "mojo/public/cpp/bindings/strong_binding.h" 9 #include "mojo/public/cpp/bindings/strong_binding.h"
10 #include "mojo/public/cpp/system/macros.h" 10 #include "mojo/public/cpp/system/macros.h"
11 #include "services/test_service/test_request_tracker.mojom.h" 11 #include "services/test_service/test_request_tracker.mojom.h"
12 12
13 namespace mojo { 13 namespace mojo {
14 class ApplicationConnection;
15 namespace test { 14 namespace test {
16 15
17 typedef std::map<uint64_t, std::vector<ServiceStats> > AllRecordsMap; 16 typedef std::map<uint64_t, std::vector<ServiceStats> > AllRecordsMap;
18 17
19 // Shared state between all instances of TestRequestTrackerImpl 18 // Shared state between all instances of TestRequestTrackerImpl
20 // and the master TrackedRequestService. 19 // and the master TrackedRequestService.
21 struct TrackingContext { 20 struct TrackingContext {
22 TrackingContext(); 21 TrackingContext();
23 ~TrackingContext(); 22 ~TrackingContext();
24 AllRecordsMap records; 23 AllRecordsMap records;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 TrackingContext* context_; 59 TrackingContext* context_;
61 StrongBinding<TestTrackedRequestService> binding_; 60 StrongBinding<TestTrackedRequestService> binding_;
62 61
63 MOJO_DISALLOW_COPY_AND_ASSIGN(TestTrackedRequestServiceImpl); 62 MOJO_DISALLOW_COPY_AND_ASSIGN(TestTrackedRequestServiceImpl);
64 }; 63 };
65 64
66 } // namespace test 65 } // namespace test
67 } // namespace mojo 66 } // namespace mojo
68 67
69 #endif // SERVICES_TEST_SERVICE_TEST_REQUEST_TRACKER_IMPL_H_ 68 #endif // SERVICES_TEST_SERVICE_TEST_REQUEST_TRACKER_IMPL_H_
OLDNEW
« no previous file with comments | « services/python/content_handler/content_handler_main.cc ('k') | services/test_service/test_service_application.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698