extension_processes_api.h revision c407dc5cd9bdc5668497f21b26b09d988ab439de
1// Copyright (c) 2010 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.
4
5#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESSES_API_H__
6#define CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESSES_API_H__
7
8#include "chrome/browser/extensions/extension_function.h"
9
10// This extension function returns the Process object for the renderer process
11// currently in use by the specified Tab.
12class GetProcessForTabFunction : public SyncExtensionFunction {
13  virtual ~GetProcessForTabFunction() {}
14  virtual bool RunImpl();
15  DECLARE_EXTENSION_FUNCTION_NAME("experimental.processes.getProcessForTab")
16};
17
18#endif  // CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESSES_API_H__
19