• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2015 The Chromium Embedded Framework Authors. All rights
2 // reserved. Use of this source code is governed by a BSD-style license that
3 // can be found in the LICENSE file.
4 
5 #ifndef CEF_TESTS_SHARED_BROWSER_MAIN_MESSAGE_LOOP_STD_H_
6 #define CEF_TESTS_SHARED_BROWSER_MAIN_MESSAGE_LOOP_STD_H_
7 #pragma once
8 
9 #include "tests/shared/browser/main_message_loop.h"
10 
11 namespace client {
12 
13 // Represents the main message loop in the browser process. This implementation
14 // is a light-weight wrapper around the Chromium UI thread.
15 class MainMessageLoopStd : public MainMessageLoop {
16  public:
17   MainMessageLoopStd();
18 
19   // MainMessageLoop methods.
20   int Run() override;
21   void Quit() override;
22   void PostTask(CefRefPtr<CefTask> task) override;
23   bool RunsTasksOnCurrentThread() const override;
24 
25 #if defined(OS_WIN)
26   void SetCurrentModelessDialog(HWND hWndDialog) override;
27 #endif
28 
29  private:
30   DISALLOW_COPY_AND_ASSIGN(MainMessageLoopStd);
31 };
32 
33 }  // namespace client
34 
35 #endif  // CEF_TESTS_SHARED_BROWSER_MAIN_MESSAGE_LOOP_STD_H_
36