#ifndef EXTENSIONS_BROWSER_API_API_RESOURCE_H_
#define EXTENSIONS_BROWSER_API_API_RESOURCE_H_
#include "content/public/browser/browser_thread.h"
#include "extensions/common/extension_id.h"
namespace extensions {
class ApiResource {
public:
ApiResource(const ApiResource&) = delete;
ApiResource& operator=(const ApiResource&) = delete;
virtual ~ApiResource();
const ExtensionId& owner_extension_id() const { return owner_extension_id_; }
virtual bool IsPersistent() const;
static const content::BrowserThread::ID kThreadId =
content::BrowserThread::IO;
protected:
explicit ApiResource(const std::string& owner_extension_id);
private:
const ExtensionId owner_extension_id_;
};
}
#endif