Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / chrome / renderer / extensions / pepper_request_natives.h
blobc1b1add9ff35d1b82bb99fba72976a35f573c214
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_RENDERER_EXTENSIONS_PEPPER_REQUEST_NATIVES_H_
6 #define CHROME_RENDERER_EXTENSIONS_PEPPER_REQUEST_NATIVES_H_
8 #include "base/compiler_specific.h"
9 #include "extensions/renderer/object_backed_native_handler.h"
11 namespace base {
12 class Value;
15 namespace extensions {
17 // Custom bindings for handling API calls from pepper plugins.
18 class PepperRequestNatives : public ObjectBackedNativeHandler {
19 public:
20 explicit PepperRequestNatives(ScriptContext* context);
22 private:
23 // Sends a response to an API call to the pepper plugin which made the call.
24 // |args| should contain:
25 // |request_id|: An int containing the id of the request.
26 // |response|: An array containing the response.
27 // |error|: A string containing the error message if an error occurred or
28 // null if the call was successful.
29 void SendResponse(const v8::FunctionCallbackInfo<v8::Value>& args);
31 DISALLOW_COPY_AND_ASSIGN(PepperRequestNatives);
34 } // namespace extensions
36 #endif // CHROME_RENDERER_EXTENSIONS_PEPPER_REQUEST_NATIVES_H_