mirror of
				https://bitbucket.org/chromiumembedded/cef
				synced 2025-06-05 21:39:12 +02:00 
			
		
		
		
	Add "cef/" prefix for CEF #includes in libcef/ directory. Sort #includes by following https://google.github.io/styleguide/cppguide.html#Names_and_Order_of_Includes
		
			
				
	
	
		
			58 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			58 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
 | 
						|
// reserved. Use of this source code is governed by a BSD-style license that
 | 
						|
// can be found in the LICENSE file.
 | 
						|
 | 
						|
#ifndef CEF_LIBCEF_COMMON_COMMAND_LINE_IMPL_H_
 | 
						|
#define CEF_LIBCEF_COMMON_COMMAND_LINE_IMPL_H_
 | 
						|
#pragma once
 | 
						|
 | 
						|
#include "base/command_line.h"
 | 
						|
#include "cef/include/cef_command_line.h"
 | 
						|
#include "cef/libcef/common/value_base.h"
 | 
						|
 | 
						|
// CefCommandLine implementation
 | 
						|
class CefCommandLineImpl
 | 
						|
    : public CefValueBase<CefCommandLine, base::CommandLine> {
 | 
						|
 public:
 | 
						|
  // If |will_delete=false| make sure to call |std::ignore =
 | 
						|
  // obj->Detach(nullptr);| to invalidate this object when the client should no
 | 
						|
  // longer be accessing it.
 | 
						|
  CefCommandLineImpl(base::CommandLine* value,
 | 
						|
                     bool will_delete,
 | 
						|
                     bool read_only);
 | 
						|
 | 
						|
  // Shortcut for |will_delete=false|, |read_only=true|.
 | 
						|
  explicit CefCommandLineImpl(const base::CommandLine& value);
 | 
						|
 | 
						|
  CefCommandLineImpl(const CefCommandLineImpl&) = delete;
 | 
						|
  CefCommandLineImpl& operator=(const CefCommandLineImpl&) = delete;
 | 
						|
 | 
						|
  // CefCommandLine methods.
 | 
						|
  bool IsValid() override;
 | 
						|
  bool IsReadOnly() override;
 | 
						|
  CefRefPtr<CefCommandLine> Copy() override;
 | 
						|
  void InitFromArgv(int argc, const char* const* argv) override;
 | 
						|
  void InitFromString(const CefString& command_line) override;
 | 
						|
  void Reset() override;
 | 
						|
  void GetArgv(std::vector<CefString>& argv) override;
 | 
						|
  CefString GetCommandLineString() override;
 | 
						|
  CefString GetProgram() override;
 | 
						|
  void SetProgram(const CefString& program) override;
 | 
						|
  bool HasSwitches() override;
 | 
						|
  bool HasSwitch(const CefString& name) override;
 | 
						|
  CefString GetSwitchValue(const CefString& name) override;
 | 
						|
  void GetSwitches(SwitchMap& switches) override;
 | 
						|
  void AppendSwitch(const CefString& name) override;
 | 
						|
  void AppendSwitchWithValue(const CefString& name,
 | 
						|
                             const CefString& value) override;
 | 
						|
  bool HasArguments() override;
 | 
						|
  void GetArguments(ArgumentList& arguments) override;
 | 
						|
  void AppendArgument(const CefString& argument) override;
 | 
						|
  void PrependWrapper(const CefString& wrapper) override;
 | 
						|
 | 
						|
  // Must hold the controller lock while using this value.
 | 
						|
  const base::CommandLine& command_line() { return const_value(); }
 | 
						|
};
 | 
						|
 | 
						|
#endif  // CEF_LIBCEF_COMMON_COMMAND_LINE_IMPL_H_
 |