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

Side by Side Diff: media/mojo/services/mojo_cdm_service.h

Issue 872773008: Move WeakPtrFactory member last in class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | 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
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 MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_H_ 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_H_
6 #define MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_H_ 6 #define MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 void OnSessionExpirationUpdate(const std::string& session_id, 61 void OnSessionExpirationUpdate(const std::string& session_id,
62 const base::Time& new_expiry_time); 62 const base::Time& new_expiry_time);
63 void OnSessionClosed(const std::string& session_id); 63 void OnSessionClosed(const std::string& session_id);
64 void OnSessionError(const std::string& session_id, 64 void OnSessionError(const std::string& session_id,
65 MediaKeys::Exception exception, 65 MediaKeys::Exception exception,
66 uint32_t system_code, 66 uint32_t system_code,
67 const std::string& error_message); 67 const std::string& error_message);
68 68
69 scoped_ptr<MediaKeys> cdm_; 69 scoped_ptr<MediaKeys> cdm_;
70 70
71 base::WeakPtr<MojoCdmService> weak_this_;
71 base::WeakPtrFactory<MojoCdmService> weak_factory_; 72 base::WeakPtrFactory<MojoCdmService> weak_factory_;
72 base::WeakPtr<MojoCdmService> weak_this_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(MojoCdmService); 74 DISALLOW_COPY_AND_ASSIGN(MojoCdmService);
75 }; 75 };
76 76
77 } // namespace media 77 } // namespace media
78 78
79 #endif // MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_H_ 79 #endif // MEDIA_MOJO_SERVICES_MOJO_CDM_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698