• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2012 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_LIBCEF_COMMON_PROCESS_MESSAGE_IMPL_H_
6 #define CEF_LIBCEF_COMMON_PROCESS_MESSAGE_IMPL_H_
7 #pragma once
8 
9 #include "include/cef_process_message.h"
10 #include "libcef/common/value_base.h"
11 
12 struct Cef_Request_Params;
13 
14 // CefProcessMessage implementation
15 class CefProcessMessageImpl
16     : public CefValueBase<CefProcessMessage, Cef_Request_Params> {
17  public:
18   CefProcessMessageImpl(Cef_Request_Params* value,
19                         bool will_delete,
20                         bool read_only);
21 
22   // Copies the underlying value to the specified |target| structure.
23   bool CopyTo(Cef_Request_Params& target);
24 
25   // CefProcessMessage methods.
26   bool IsValid() override;
27   bool IsReadOnly() override;
28   CefRefPtr<CefProcessMessage> Copy() override;
29   CefString GetName() override;
30   CefRefPtr<CefListValue> GetArgumentList() override;
31 
32   DISALLOW_COPY_AND_ASSIGN(CefProcessMessageImpl);
33 };
34 
35 #endif  // CEF_LIBCEF_COMMON_PROCESS_MESSAGE_IMPL_H_
36