mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-29 10:39:49 +01:00
8078afe7bf
- Add new CefSettings.windowless_rendering_enabled value that must be enabled when using windowless (off-screen) rendering. - Improve naming and documentation for CefWindowInfo members. - CefBeginTracing now completes asynchronously. - Rename CefEndTracingAsync to CefEndTracing. - Rename CefCompletionHandler to CefCompletionCallback. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1592 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
36 lines
1.1 KiB
C++
36 lines
1.1 KiB
C++
// Copyright (c) 2013 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_BROWSER_TRACE_SUBSCRIBER_H_
|
|
#define CEF_LIBCEF_BROWSER_TRACE_SUBSCRIBER_H_
|
|
#pragma once
|
|
|
|
#include "include/cef_trace.h"
|
|
|
|
#include "base/files/file_path.h"
|
|
#include "base/memory/ref_counted_memory.h"
|
|
#include "base/memory/scoped_ptr.h"
|
|
#include "base/memory/weak_ptr.h"
|
|
|
|
// May only be accessed on the browser process UI thread.
|
|
class CefTraceSubscriber {
|
|
public:
|
|
CefTraceSubscriber();
|
|
virtual ~CefTraceSubscriber();
|
|
|
|
bool BeginTracing(const std::string& categories,
|
|
CefRefPtr<CefCompletionCallback> callback);
|
|
bool EndTracing(const base::FilePath& tracing_file,
|
|
CefRefPtr<CefEndTracingCallback> callback);
|
|
|
|
private:
|
|
void OnTracingFileResult(CefRefPtr<CefEndTracingCallback> callback,
|
|
const base::FilePath& tracing_file);
|
|
|
|
bool collecting_trace_data_;
|
|
base::WeakPtrFactory<CefTraceSubscriber> weak_factory_;
|
|
};
|
|
|
|
#endif // CEF_LIBCEF_BROWSER_TRACE_SUBSCRIBER_H_
|