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

Side by Side Diff: ppapi/cpp/private/flash_message_loop.h

Issue 9381010: Convert resources to take an instance key instead of an Instance*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: USELESS PATCH TITLE Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/cpp/private/flash_menu.cc ('k') | ppapi/cpp/private/flash_message_loop.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 PPAPI_CPP_PRIVATE_FLASH_MESSAGE_LOOP_H_ 5 #ifndef PPAPI_CPP_PRIVATE_FLASH_MESSAGE_LOOP_H_
6 #define PPAPI_CPP_PRIVATE_FLASH_MESSAGE_LOOP_H_ 6 #define PPAPI_CPP_PRIVATE_FLASH_MESSAGE_LOOP_H_
7 7
8 #include "ppapi/c/pp_stdint.h" 8 #include "ppapi/c/pp_stdint.h"
9 #include "ppapi/cpp/resource.h" 9 #include "ppapi/cpp/resource.h"
10 10
11 namespace pp { 11 namespace pp {
12 12
13 class Instance; 13 class InstanceHandle;
14 14
15 namespace flash { 15 namespace flash {
16 16
17 class MessageLoop : public Resource { 17 class MessageLoop : public Resource {
18 public: 18 public:
19 explicit MessageLoop(Instance* instance); 19 explicit MessageLoop(const InstanceHandle& instance);
20 virtual ~MessageLoop(); 20 virtual ~MessageLoop();
21 21
22 static bool IsAvailable(); 22 static bool IsAvailable();
23 23
24 int32_t Run(); 24 int32_t Run();
25 void Quit(); 25 void Quit();
26 }; 26 };
27 27
28 } // namespace flash 28 } // namespace flash
29 } // namespace pp 29 } // namespace pp
30 30
31 #endif // PPAPI_CPP_PRIVATE_FLASH_MESSAGE_LOOP_H_ 31 #endif // PPAPI_CPP_PRIVATE_FLASH_MESSAGE_LOOP_H_
OLDNEW
« no previous file with comments | « ppapi/cpp/private/flash_menu.cc ('k') | ppapi/cpp/private/flash_message_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698