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

Unified Diff: net/bits_job_callback.h

Issue 624713003: Keep only base/extractor.[cc|h]. (Closed) Base URL: https://chromium.googlesource.com/external/omaha.git@master
Patch Set: Created 6 years, 2 months 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
« no previous file with comments | « net/bind_status_callback.cc ('k') | net/bits_job_callback.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/bits_job_callback.h
diff --git a/net/bits_job_callback.h b/net/bits_job_callback.h
deleted file mode 100644
index eb3a9cb3500d02d51b915ee209b89b1838203a4e..0000000000000000000000000000000000000000
--- a/net/bits_job_callback.h
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright 2010 Google Inc.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-// ========================================================================
-//
-
-#ifndef OMAHA_NET_BITS_JOB_CALLBACK_H_
-#define OMAHA_NET_BITS_JOB_CALLBACK_H_
-
-#include <windows.h>
-#include <bits.h>
-#include <atlbase.h>
-#include <atlcom.h>
-#include "base/basictypes.h"
-#include "omaha/base/synchronized.h"
-
-namespace omaha {
-
-class BitsRequest;
-
-// BitsJobCallback receives notifications that a BITS job is complete, has been
-// modified, or is in error.
-class ATL_NO_VTABLE BitsJobCallback
- : public CComObjectRootEx<CComObjectThreadModel>,
- public IBackgroundCopyCallback {
- public:
- BitsJobCallback() {}
- virtual ~BitsJobCallback() {
- bits_request_ = NULL;
- }
-
- static HRESULT Create(BitsRequest* bits_request,
- BitsJobCallback** bits_job_callback);
-
- void RemoveReferenceToBitsRequest();
-
- BEGIN_COM_MAP(BitsJobCallback)
- COM_INTERFACE_ENTRY(IBackgroundCopyCallback)
- END_COM_MAP()
-
- // IBackgroundCopyCallback methods.
- STDMETHODIMP JobTransferred(IBackgroundCopyJob* job);
- STDMETHODIMP JobError(IBackgroundCopyJob* job, IBackgroundCopyError* error);
- STDMETHODIMP JobModification(IBackgroundCopyJob* job, DWORD reserved);
-
- private:
- BitsRequest* bits_request_;
- LLock lock_;
-
- DISALLOW_EVIL_CONSTRUCTORS(BitsJobCallback);
-};
-
-} // namespace omaha
-
-#endif // OMAHA_NET_BITS_JOB_CALLBACK_H_
-
« no previous file with comments | « net/bind_status_callback.cc ('k') | net/bits_job_callback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698