Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Unified Diff: chrome/browser/nacl_host/nacl_host_message_filter.h

Issue 75463005: Move more files from chrome/browser/nacl_host/ to components/nacl/browser/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/nacl_host/nacl_host_message_filter.h
diff --git a/chrome/browser/nacl_host/nacl_host_message_filter.h b/chrome/browser/nacl_host/nacl_host_message_filter.h
deleted file mode 100644
index b8b201ab17a69557504edf92bbd9c1ad95229480..0000000000000000000000000000000000000000
--- a/chrome/browser/nacl_host/nacl_host_message_filter.h
+++ /dev/null
@@ -1,82 +0,0 @@
-// Copyright 2013 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_BROWSER_NACL_HOST_NACL_HOST_MESSAGE_FILTER_H_
-#define CHROME_BROWSER_NACL_HOST_NACL_HOST_MESSAGE_FILTER_H_
-
-#include "base/files/file_path.h"
-#include "base/memory/weak_ptr.h"
-#include "base/platform_file.h"
-#include "content/public/browser/browser_message_filter.h"
-
-class GURL;
-
-namespace nacl {
-struct NaClLaunchParams;
-struct PnaclCacheInfo;
-}
-
-namespace net {
-class HostResolver;
-class URLRequestContextGetter;
-}
-
-// This class filters out incoming Chrome-specific IPC messages for the renderer
-// process on the IPC thread.
-class NaClHostMessageFilter : public content::BrowserMessageFilter {
- public:
- NaClHostMessageFilter(int render_process_id,
- bool is_off_the_record,
- const base::FilePath& profile_directory,
- net::URLRequestContextGetter* request_context);
-
- // content::BrowserMessageFilter methods:
- virtual bool OnMessageReceived(const IPC::Message& message,
- bool* message_was_ok) OVERRIDE;
- virtual void OnChannelClosing() OVERRIDE;
-
- int render_process_id() { return render_process_id_; }
- bool off_the_record() { return off_the_record_; }
- net::HostResolver* GetHostResolver();
-
- private:
- friend class content::BrowserThread;
- friend class base::DeleteHelper<NaClHostMessageFilter>;
-
- virtual ~NaClHostMessageFilter();
-
-#if !defined(DISABLE_NACL)
- void OnLaunchNaCl(const nacl::NaClLaunchParams& launch_params,
- IPC::Message* reply_msg);
- void OnGetReadonlyPnaclFd(const std::string& filename,
- IPC::Message* reply_msg);
- void OnNaClCreateTemporaryFile(IPC::Message* reply_msg);
- void OnGetNexeFd(int render_view_id,
- int pp_instance,
- const nacl::PnaclCacheInfo& cache_info);
- void OnTranslationFinished(int instance, bool success);
- void OnNaClErrorStatus(int render_view_id, int error_id);
- void OnOpenNaClExecutable(int render_view_id,
- const GURL& file_url,
- IPC::Message* reply_msg);
- void SyncReturnTemporaryFile(IPC::Message* reply_msg,
- base::PlatformFile fd);
- void AsyncReturnTemporaryFile(int pp_instance,
- base::PlatformFile fd,
- bool is_hit);
-#endif
- int render_process_id_;
-
- // off_the_record_ is copied from the profile partly so that it can be
- // read on the IO thread.
- bool off_the_record_;
- base::FilePath profile_directory_;
- scoped_refptr<net::URLRequestContextGetter> request_context_;
-
- base::WeakPtrFactory<NaClHostMessageFilter> weak_ptr_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(NaClHostMessageFilter);
-};
-
-#endif // CHROME_BROWSER_NACL_HOST_NACL_HOST_MESSAGE_FILTER_H_

Powered by Google App Engine
This is Rietveld 408576698