// Copyright (c) 2009 The Chromium 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 CHROME_UTILITY_UTILITY_THREAD_H_ #define CHROME_UTILITY_UTILITY_THREAD_H_ #include #include "chrome/common/child_thread.h" class GURL; // This class represents the background thread where the utility task runs. class UtilityThread : public ChildThread { public: UtilityThread(); virtual ~UtilityThread(); // Returns the one utility thread. static UtilityThread* current() { return static_cast(ChildThread::current()); } private: // IPC messages virtual void OnControlMessageReceived(const IPC::Message& msg); void OnUnpackExtension(const FilePath& extension_path); // IPC messages for web resource service. void OnUnpackWebResource(const std::string& resource_data); // IPC for parsing an extensions auto-update manifest xml file. void OnParseUpdateManifest(const std::string& xml); DISALLOW_COPY_AND_ASSIGN(UtilityThread); }; #endif // CHROME_UTILITY_UTILITY_THREAD_H_